Bug 10036 - Failed to deploy. Internal error
Summary: Failed to deploy. Internal error
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-02-05 01:41 UTC by dj_technohead
Modified: 2016-08-03 15:37 UTC (History)
3 users (show)

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

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 or GitHub 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 dj_technohead 2013-02-05 01:41:33 UTC
Getting the following error when trying to deploy an app to a physical device:

[2013-02-03 15:57:23.6] DEBUG: RunShellCommand: 015d2d3e5d13fa0b am broadcast -a mono.android.intent.action.PACKAGE_VERSIONS -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_10,net.monocross.Edifex.Droid" Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions
[2013-02-03 15:57:24.2] DEBUG: RunShellCommand: 015d2d3e5d13fa0b cat /data/system/packages.xml
[2013-02-03 15:57:24.2] DEBUG: RunShellCommand: 015d2d3e5d13fa0b cat /dbdata/system/packages.xml
[2013-02-03 15:57:24.2] DEBUG: RunShellCommand: 015d2d3e5d13fa0b pm uninstall "Mono.Android.DebugRuntime"
[2013-02-03 15:57:34.6] DEBUG: RunShellCommand: 015d2d3e5d13fa0b pm install "/data/local/tmp/Mono.Android.DebugRuntime-armeabi-v7a.apk"
[2013-02-03 15:57:37.7] DEBUG: RunShellCommand: 015d2d3e5d13fa0b rm "/data/local/tmp/Mono.Android.DebugRuntime-armeabi-v7a.apk"
[2013-02-03 15:57:37.7] ERROR: Deployment failed
Mono.AndroidTools.InstallFailedException: Unexpected install output:
  at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess (System.String output, System.String packageName) [0x00128] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1-series/5d928ec4/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Internal/AdbOutputParsing.cs:272
  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.1-series/5d928ec4/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/AndroidDevice.cs:431
  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 /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:195
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000b] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading.Tasks/Task.cs:475
  at System.Threading.Tasks.Task.ThreadStart () [0x0006e] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading.Tasks/Task.cs:388

Version info:

MonoDevelop 3.1.1
Installation UUID: 76e1f9da-43b6-45be-9fb9-35a2e3047ca7
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (
	Package version: 210090011
Mono for Android: 4.4.55
Android SDK: /Users/dj_technohead/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
Java SDK: /usr
Apple Developer Tools:
	 Xcode 4.5.2 (1847)
	 Build 4G2008a
Xamarin.Mac: Not Installed
Monotouch: 6.0.10
Build information:
	Release ID: 30101000
	Git revision: 5d928ec4f9d5864b4db04a1301b8a8649b43fb9d
	Build date: 2012-12-14 19:11:30+0000
	Xamarin addins: 80f2dcc8fe4ed316b3e77dde496fc33d90305047
Operating System:
	Mac OS X 10.8.2
	Darwin Denniss-MacBook-Air-2.local 12.2.0 Darwin Kernel Version 12.2.0
	    Sat Aug 25 00:48:52 PDT 2012
	    root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

I was able to deploy with the prior version of Mono for android.

Comment 1 dj_technohead 2013-02-05 12:46:43 UTC
Was caused by having stdio redirected.
Comment 2 Saurabh 2013-03-01 08:45:50 UTC
Today we have checked this issue with following builds:

X.S 4.0 - 1c3e943ebec6a7d6e695af9f7a1808ac5bafdb21
MFA 4.6.01028
Mono - 2.10.11 (mono-2-10/2baeee2)

We are successfully able to deploy application on physical device.

Changing the status to Verified.