Discussion:
[mono-android] Mono for Android 4.2.8 - Problem deploying
Matteo Polito
2012-10-24 18:45:33 UTC
Permalink
Hi,

after updating to the latest version of Mono for Android I can't deply
application on emulator or device.
This is the error message:

Deployment failed. Internal error

To deploy and build my application I've to install Mono for Android 4.2.6.
How to solve this issue? I'm using monodevelop 3.0.4.7 on Mac.

Thanks,

Matteo.
Jonathan Pryor
2012-10-24 20:24:14 UTC
Permalink
Post by Matteo Polito
Deployment failed. Internal error
To deploy and build my application I've to install Mono for Android 4.2.6.
Can you provide Diagnostic build output?

Within MonoDevelop/OS X:

• Click MonoDevelop > Preferences...
• In the left-hand tree view, select Preferences > Build
• In the right-hand panel, set the Log verbosity drop-down to Diagnostic
• Click OK
• Restart MonoDevelop
• Clean and rebuild your package.

It will also be helpful to view the $HOME/Library/Logs/MonoDevelop-3.0/AndroidTools*.log file.

- Jon
Matteo Polito
2012-10-25 17:51:26 UTC
Permalink
Hi Jonathan,

this the output error. I've taken from log file as written by you.

Mono.AndroidTools.InstallFailedException: Unexpected install output:
pkg: /data/local/tmp/android.crosswrd-Signed.apk^M

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]^M


at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess
(System.String output, System.String packageName) [0x00128] in
/Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Internal/AdbOutputParsing.cs:260

at
Mono.AndroidTools.AndroidDevice+<InstallPackage>c__AnonStorey13.<>m__18
(System.Threading.Tasks.Task`1 t) [0x00016] in
/Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/AndroidDevice.cs:425

at
System.Threading.Tasks.TaskActionInvoker+ActionTaskInvoke`1[System.String].Invoke
(System.Threading.Tasks.Task owner, System.Object state,
System.Threading.Tasks.Task context) [0x00000] in <filename unknown>:0

at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <filename
unknown>:0

at System.Threading.Tasks.Task.ThreadStart () [0x00000] in <filename
unknown>:0

[2012-10-25 19:26:52.2] DEBUG: RunShellCommand: emulator-5554 am broadcast
-a mono.android.intent.action.PACKAGE_VERSIONS -e "packages"
"Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_8,android.crosswrd"

[2012-10-25 19:27:08.8] DEBUG: RunShellCommand: emulator-5554 pm install
"/data/local/tmp/android.crosswrd-Signed.apk"

[2012-10-25 19:27:09.4] DEBUG: RunShellCommand: emulator-5554 rm
"/data/local/tmp/android.crosswrd-Signed.apk"

[2012-10-25 19:27:09.4] ERROR: Deployment failed

Mono.AndroidTools.InstallFailedException: Unexpected install output:
pkg: /data/local/tmp/android.crosswrd-Signed.apk^M

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]^M


at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess
(System.String output, System.String packageName) [0x00128] in
/Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Internal/AdbOutputParsing.cs:260

at
Mono.AndroidTools.AndroidDevice+<InstallPackage>c__AnonStorey13.<>m__18
(System.Threading.Tasks.Task`1 t) [0x00016] in
/Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/AndroidDevice.cs:425

at
System.Threading.Tasks.TaskActionInvoker+ActionTaskInvoke`1[System.String].Invoke
(System.Threading.Tasks.Task owner, System.Object state,
System.Threading.Tasks.Task context) [0x00000] in <filename unknown>:0

at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <filename
unknown>:0

at System.Threading.Tasks.Task.ThreadStart () [0x00000] in <filename
unknown>:0
Post by Matteo Polito
Post by Matteo Polito
after updating to the latest version of Mono for Android I can't deply
Deployment failed. Internal error
To deploy and build my application I've to install Mono for Android
4.2.6.
Can you provide Diagnostic build output?
• Click MonoDevelop > Preferences...
• In the left-hand tree view, select Preferences > Build
• In the right-hand panel, set the Log verbosity drop-down to
Diagnostic
• Click OK
• Restart MonoDevelop
• Clean and rebuild your package.
It will also be helpful to view the
$HOME/Library/Logs/MonoDevelop-3.0/AndroidTools*.log file.
- Jon
_______________________________________________
Monodroid mailing list
http://lists.ximian.com/mailman/listinfo/monodroid
Jonathan Pryor
2012-10-25 18:33:25 UTC
Permalink
Mono.AndroidTools.InstallFailedException: Unexpected install output: pkg: /data/local/tmp/android.crosswrd-Signed.apk^M
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]^M
This is usually similar in nature to:

http://docs.xamarin.com/android/troubleshooting#INSTALL_FAILED_INVALID_APK_when_installing_a_package

You'll need to obtain the logcat output to see _why_ Android doesn't like your AndroidManifest.xml:

http://docs.xamarin.com/Android/Guides/Deployment%2C_Testing%2C_and_Metrics/Android_Debug_Log

Thanks,
- Jon
SRI
2012-10-26 13:49:52 UTC
Permalink
Hi All,

I also encountered this and found that it is because of wrong
package name. If my package name does not have a .[dot] like
HelloWorld then it complains, but if I change my package name to
Mvp.HelloWorld, then it works fine.

I am not sure whether you are also having the same problem?

Best Regards,
Sridharan Srinivasan
www.arshu.com
Post by Jonathan Pryor
Mono.AndroidTools.InstallFailedException: Unexpected install output: pkg: /data/local/tmp/android.crosswrd-Signed.apk^M
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]^M
http://docs.xamarin.com/android/troubleshooting#INSTALL_FAILED_INVALID_APK_when_installing_a_package
http://docs.xamarin.com/Android/Guides/Deployment%2C_Testing%2C_and_Metrics/Android_Debug_Log
Thanks,
- Jon
_______________________________________________
Monodroid mailing list
http://lists.ximian.com/mailman/listinfo/monodroid
--
Sridharan Srinivasan
Alias Sri
Ph:(65)98255785/(65)63922439
www.arshu.com
Matteo Polito
2012-10-27 18:23:01 UTC
Permalink
Thanks for your answer. I've yet tried to solve in this way, bit no luck.
My project name has yet a point.

Maybe I'll solve it one day. I know that if I use previous version all
things work very very well.

Thanks.
Post by SRI
Hi All,
I also encountered this and found that it is because of wrong
package name. If my package name does not have a .[dot] like
HelloWorld then it complains, but if I change my package name to
Mvp.HelloWorld, then it works fine.
I am not sure whether you are also having the same problem?
Best Regards,
Sridharan Srinivasan
www.arshu.com
pkg: /data/local/tmp/android.crosswrd-Signed.apk^M
Post by Jonathan Pryor
Post by Matteo Polito
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]^M
http://docs.xamarin.com/android/troubleshooting#INSTALL_FAILED_INVALID_APK_when_installing_a_package
Post by Jonathan Pryor
You'll need to obtain the logcat output to see _why_ Android doesn't
http://docs.xamarin.com/Android/Guides/Deployment%2C_Testing%2C_and_Metrics/Android_Debug_Log
Post by Jonathan Pryor
Thanks,
- Jon
_______________________________________________
Monodroid mailing list
http://lists.ximian.com/mailman/listinfo/monodroid
--
Sridharan Srinivasan
Alias Sri
Ph:(65)98255785/(65)63922439
www.arshu.com
_______________________________________________
Monodroid mailing list
http://lists.ximian.com/mailman/listinfo/monodroid
Doug
2012-10-25 00:47:07 UTC
Permalink
For what it's worth, I'm using the same version of the both and I also
periodically get deployment errors too ("deployment failed"); usually
I just restart monodevelop and the problem disappears though.

~
Doug.
Post by Matteo Polito
Hi,
after updating to the latest version of Mono for Android I can't deply
application on emulator or device.
Deployment failed. Internal error
To deploy and build my application I've to install Mono for Android 4.2.6.
How to solve this issue? I'm using monodevelop 3.0.4.7 on Mac.
Thanks,
Matteo.
_______________________________________________
Monodroid mailing list
http://lists.ximian.com/mailman/listinfo/monodroid
Jonathan Pryor
2012-10-25 18:14:46 UTC
Permalink
Post by Matteo Polito
Deployment failed. Internal error
Another place to look for error messages is in the AndroidTools log files:

Windows:
%LOCALAPPDATA%\MonoDevelop-3.0\Logs\AndroidTools-DATE.log

OSX:
$HOME/Library/Logs/MonoDevelop-3.0/AndroidTools-DATE.log

- Jon
Loading...