Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I've looked at other postings about the INSTALL_PARSE_FAILED_MANIFEST_MALFORMED but still can't figure out what's wrong with 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's my error?

Here's 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]
like image 298
Roger Garrett Avatar asked Feb 12 '14 01:02

Roger Garrett


2 Answers

It's all because you added company domain (Android studio) in capital letters. Or the Package name. Change it to small letters and run the project. The problem will get resolved.

like image 127
John Simon Avatar answered Sep 27 '22 21:09

John Simon


Change your

android:name="ThePackage.SnapVest.MainActivity"

TO

android:name=".MainActivity"

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

android:name="thepackage.snapvest.MainActivity"

Do change all the attributes named as android:name inside the activity tags as I suggested.

like image 36
Vishnuvathsan Avatar answered Sep 27 '22 23:09

Vishnuvathsan