Android Studio: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I looked at other posts about INSTALL_PARSE_FAILED_MANIFEST_MALFORMED, but still cannot figure out what happened to my particular manifest. Any suggestions?

<?xml version="1.0" encoding="utf-8"?>

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="ThePackage.SnapVest.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity
        android:name="ThePackage.SnapVest.MyActiveOptions"
        android:label="@string/title_activity_my_active_options" >
    </activity>
    <activity
        android:name="ThePackage.SnapVest.MyTrades"
        android:label="@string/title_activity_my_trades" >
    </activity>
    <activity
        android:name="ThePackage.SnapVest.MyAccount"
        android:label="@string/title_activity_my_account" >
    </activity>
    <activity
        android:name="ThePackage.SnapVest.Leaderboard"
        android:label="@string/title_activity_leaderboard" >
    </activity>
</application>

So where is my mistake?

Here is the actual sequence when I run it:

Waiting for device.
Target device: kyocera-event-1001c1c
Uploading file
    local path: C:\Users\Roger Garrett\AndroidStudioProjects\SnapVest\app\build\apk\app-debug-unaligned.apk
    remote path: /data/local/tmp/ThePackage.SnapVest
Installing ThePackage.SnapVest
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/ThePackage.SnapVest"
pkg: /data/local/tmp/ThePackage.SnapVest
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
+4
source share
3 answers

That's because you added the company domain (Android Studio) in capital letters. Or the name of the package. Change it to small letters and start the project. The problem will be solved.

+6
source

Change your

android:name="ThePackage.SnapVest.MainActivity"

FROM

android:name=".MainActivity"

OR make all the characters in the package name below except your class name

android:name="thepackage.snapvest.MainActivity"

android:name activity, .

+2

In my case, the package name had a capital letter. After switching to all small letters, the application is successfully installed

0
source

Source: https://habr.com/ru/post/1526461/


All Articles