How to Fix Install_Parse_Failed_Manifest_Malformed in My Android Application

How to fix INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in my android application

Change name package with Caps letters to little letters.

INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

There is more than one problem as RC. and I found out.

  • Change all your package names to lowercase
  • Update the <meta-data> attribute to have a valid value.

Correct code for the meta data:

<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

Sources:

  • Google Play Services v13 error meta-data in AndroidManifest
  • Why should java package name be lowercase?

INSTALL_PARSE_FAILED_MANIFEST_MALFORMED error

As with error description in error, it's about LeakLauncherActivity

leakcanary.internal.activity.LeakLauncherActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present

And it looks like this issue has been fixed in new version of leak canary lib.
https://github.com/square/leakcanary/issues/2076

Failure INSTALL PARSE FAILED MANIFEST MALFORMED

I was having this error because i had capital letters in my package name like this.

Com.Droider.packagename;

After i had changed it to something like:

com.droider.packagename;

In your case try to change it to:

work.work;

EDIT 1 :

May be this causes also.

android:name="MainActivity"

Change this to.

android:name=".MainActivity"

INSTALL_PARSE_FAILED_MANIFEST_MALFORMED error while installing app android

Your meta data is incorrect:

<meta-data android:name="android.support.multidex.MultiDexApplication" />

As stated in the api a meta-data tag is a name-value pair and needs a value or resource. It must be for example:

<meta-data android:name="android.support.multidex.MultiDexApplication"
android:value="@string/yourValue" />

or

 <meta-data android:name="android.support.multidex.MultiDexApplication"
android:resource="@string/yourValue" />

Change this, delete your app from device, clean project and reinstall it.



Related Topics



Leave a reply



Submit