You are here

Deployment failed because of an internal error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I encountered this error when deploying an Android app that was built for an older version (4.2.x) of Mono for Android.

[geshifilter-blockcode]Detecting installed packages Waiting for packaging to complete Installing application on device Deployment failed because of an internal error: Unexpected install output:     pkg: /data/local/tmp/ca.guelph.visit-Signed.apk Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] Deployment failed. Internal error.[/geshifilter-blockcode]

The cause of the problem was these lines in the AndroidManifest.xml:

[geshifilter-xml]<!-- Allow the application to access Google web-based services. --> <uses-permission android:name="" /> <!-- Notice here that we have the package name of our application as a prefix on the permissions. --> <uses-permission android:name="Visit.Guelph.permission.MAPS_RECEIVE" /> <permission android:name="Visit.Guelph.permission.MAPS_RECEIVE" android:protectionLevel="signature" />[/geshifilter-xml]

Add new comment

Simple Copyright Policy: If you want to reproduce anything on this site, get my permission first.