On May 8, 2013, at 10:49 AM, Paul Johnson <[email protected]> wrote: > Everything builds, but the deploy fails with > > Deployment failed because of an internal error: Unexpected install output: > pkg: /data/local/tmp/Origin.Origin-Signed.apk > Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] > > My manifest file looks like this
That's not your actual AndroidManifest.xml; that's the "template" one. You want the "real" one, which is generated as part of the build process. You can find it in e.g. obj\$(Configuration)\android\AndroidManifest.xml. Furthermore, Android will _generally_ provide some additional information on `adb logcat` for why the AndroidManifest.xml was invalid. I would suggest that you look there. That said, there is one problem with your Properties\AndroidManifest.xml: > <?xml version="1.0" encoding="utf-8"?> > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > android:versionCode="1" android:versionName="1.0" package="Origin"> Android gets really mad if you try to have a package name that doesn't contain a '.', and your /manifest/@package value doesn't contain a '.'. Furthermore, Android doesn't like it when permission names start with Capital letter, and PushSharp automatically adds permissions to your AndroidManifest.xml which start with @PACKAGE_NAME@, which is your /manifest/@package value, which starts with a capital letter 'O'. So all signs point to your package name being unacceptable to Android. > Do I need to define @PACKAGE_NAME@ anywhere special or is it picked up from > the manifest and any ideas why I can't install? The build process automatically replaces @PACKAGE_NAME@ with the AndroidManifest.xml's /manifest/@package value. You don't need to do anything special to use it...other than ensure that the resulting values are acceptable to Android (e.g. don't have a //permission/@android:name value that starts with a capital letter). - Jon _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
