Bug 5375 - Deploy to a device failed with a "Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]" error
Summary: Deploy to a device failed with a "Failure [INSTALL_PARSE_FAILED_MANIFEST_MALF...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-05-28 16:59 UTC by Tom Opgenorth
Modified: 2016-08-03 15:23 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

GUI information about the error (133.20 KB, image/png)
2012-05-28 16:59 UTC, Tom Opgenorth

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Tom Opgenorth 2012-05-28 16:59:01 UTC
Created attachment 1976 [details]
GUI information about the error

I created a new Mono for Android application named 2DDrawing. The namespace of the application is _2DDrawing.

When I get VS2010 to deploy to my device (Galaxy Nexus, Android 4.0.4), I get an "Unhandled exception in InstallPackage. See exception for details."  A screen shot below is attached.

When I look in logcat, I see: 
"05-28 14:52:59.444: W/PackageParser(193): /data/app/vmdl1621064073.tmp (at Binary XML file line #5): <activity> does not have valid android:name

The activity in question looks like this in AndroidManifest.xml:
    <activity android:icon="@drawable/icon" android:label="Drawing Recipe" android:name="_2ddrawing.Activity1">
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />

When I change the namespace to something like "TwoDDrawing", then these issues go away. 

This is probably valid Android behaviour.

Would be nice for a more meaningful error message to help a developer troublshoot this problem.
Comment 1 Jonathan Pobst 2012-05-29 16:34:35 UTC
Fixed in 7b34c25fcf54c09369228723dd63f71e497f6c04.