Bug 29736 - Mandroid X0000 error when deploying to device
Summary: Mandroid X0000 error when deploying to device
Status: RESOLVED NORESPONSE
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 5.2
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2015-05-05 05:01 UTC by Twan
Modified: 2017-09-14 18:54 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED NORESPONSE

Description Twan 2015-05-05 05:01:14 UTC
I am trying to get the PushwooshSDK into the Android App. I can run the sample project from Pushwoosh and it works fine. 

Build started 5-5-2015 10:46:58.
__________________________________________________
Project "/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/AndroidMobile.csproj" (SignAndroidPackage target(s)):
	
	Target PrepareForBuild:
		Configuration: Debug Platform: AnyCPU
	
	Target _GenerateAndroidAssetsDir:
	No output files were specified for target _GenerateAndroidAssetsDir, skipping.
	
	Target _ResolveMonoAndroidSdks:
		MonoAndroid Tools: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/
		MonoAndroid Binaries: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/bin/
		Android Platform API level: 19
		TargetFrameworkVersion: v4.4
		Android NDK: /Users/twanaarts/Library/Developer/Xamarin/android-ndk/android-ndk-r8d/
		Android SDK: /Users/twanaarts/Library/Developer/Xamarin/android-sdk-macosx/
		Android SDK Build Tools: /Users/twanaarts/Library/Developer/Xamarin/android-sdk-macosx/build-tools/21.1.1/
		Java SDK: /usr/
	
	Target _GenerateAndroidResourceDir:
	Skipping target "_GenerateAndroidResourceDir" because its outputs are up-to-date.
	
	Target _ValidateAndroidPackageProperties:
		  PackageName: SpoorplazaWatch.SpoorplazaWatch
/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/Properties/AndroidManifest.xml:  warning XA4211: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '18' is less than $(TargetFrameworkVersion) 'v4.4'. Using API-19 for ACW compilation.
	
	Target _BuildAdditionalResourcesCache:
	Skipping target "_BuildAdditionalResourcesCache" because its outputs are up-to-date.
	
	Target _CreateAdditionalResourceCache:
	Skipping target "_CreateAdditionalResourceCache" because its outputs are up-to-date.
	
	Target _UpdateAndroidResgen:
	Skipping target "_UpdateAndroidResgen" because its outputs are up-to-date.
	
	Target _GenerateJavaDesignerForComponent:
		  Additional Android Resources manifsets files are unchanged. Skipping.
	
	Target GenerateSatelliteAssemblies:
	No input files were specified for target GenerateSatelliteAssemblies, skipping.
	
	Target GenerateTargetFrameworkMonikerAttribute:
	Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
	
	Target CoreCompile:
	Skipping target "CoreCompile" because its outputs are up-to-date.
	
	Target _ScanAssemblies:
	Skipping target "_ScanAssemblies" because its outputs are up-to-date.
	
	Target _CreateIntermediateAssembliesDir:
	Skipping target "_CreateIntermediateAssembliesDir" because its outputs are up-to-date.
	
	Target _CopyMdbFiles:
	Skipping target "_CopyMdbFiles" because its outputs are up-to-date.
	
	Target _CopyConfigFiles:
	No output files were specified for target _CopyConfigFiles, skipping.
	
	Target _CopyIntermediateAssemblies:
	Skipping target "_CopyIntermediateAssemblies" because its outputs are up-to-date.
	
	Target _StripEmbeddedLibraries:
	Skipping target "_StripEmbeddedLibraries" because its outputs are up-to-date.
	
	Target _GenerateJavaStubs:
	Skipping target "_GenerateJavaStubs" because its outputs are up-to-date.
	
	Target _AddStaticResources:
	Skipping target "_AddStaticResources" because its outputs are up-to-date.
	
	Target _GeneratePackageManagerJava:
	Skipping target "_GeneratePackageManagerJava" because its outputs are up-to-date.
	
	Target _CreateBaseApk:
	Skipping target "_CreateBaseApk" because its outputs are up-to-date.
	
	Target _CompileJava:
		Tool /usr//bin/javac execution started with arguments: -J-Dfile.encoding=UTF8 -d obj/Debug/android/bin/classes -classpath /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.4/mono.android.jar:/Users/twanaarts/Projects/SpoorplazaWatch/packages/Xamarin.GooglePlayServices.19.0.0/lib/MonoAndroid10/19/content/google-play-services/libproject/google-play-services_lib/libs/google-play-services.jar:/Users/twanaarts/.local/share/Xamarin/Android.Support.v13/20.0.0/content/support/v13/android-support-v13.jar -bootclasspath /Users/twanaarts/Library/Developer/Xamarin/android-sdk-macosx/platforms/android-19/android.jar -encoding UTF-8 @/var/folders/7h/f0rdx0nn75s666zq_m7fkc_c0000gn/T/tmp7a70a731.tmp 
		Note: Some input files use unchecked or unsafe operations.
		Note: Recompile with -Xlint:unchecked for details.
	
	Target _CompileToDalvik:
		Tool /usr/bin/java execution started with arguments: -jar /Users/twanaarts/Library/Developer/Xamarin/android-sdk-macosx/build-tools/21.1.1//lib/dx.jar --no-strict --dex --output=obj/Debug/android/bin obj/Debug/android/bin/classes /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.4/mono.android.jar /Users/twanaarts/Projects/SpoorplazaWatch/packages/Xamarin.GooglePlayServices.19.0.0/lib/MonoAndroid10/19/content/google-play-services/libproject/google-play-services_lib/libs/google-play-services.jar /Users/twanaarts/.local/share/Xamarin/Android.Support.v13/20.0.0/content/support/v13/android-support-v13.jar 
	
	Target _Mandroid:
:  mandroiderror XA0000: Invalid create-package command: -v --nosign --sdk-dir="/Users/twanaarts/Library/Developer/Xamarin/android-sdk-macosx/" --builddir="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/obj/Debug/android" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.4" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.3" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.2" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.1" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.0.3" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.3" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/" -S="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/obj/Debug/res/" --package="SpoorplazaWatch.SpoorplazaWatch" --input="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/obj/Debug/android/bin/resources_and_assemblies" --output="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/obj/Debug/android/bin/SpoorplazaWatch.SpoorplazaWatch.apk"   --nolink --abi="arm64-v8a;armeabi;armeabi-v7a;x86;x86_64" --java-sdk-dir="/usr/" --debug --manifest-template="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/Properties/AndroidManifest.xml" --sdk-platform="19" -js="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/WearListenerService.cs" "/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/bin/Debug/AndroidMobile.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.4/Mono.Android.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Json.dll" "/Users/twanaarts/Projects/SpoorplazaWatch/packages/Xamarin.GooglePlayServices.19.0.0/lib/MonoAndroid10/GooglePlayServicesLib.dll" "/Users/twanaarts/Projects/SpoorplazaWatch/packages/Xamarin.Android.Support.v13.20.0.0.4/lib/MonoAndroid32/Xamarin.Android.Support.v13.dll" "/Users/twanaarts/Projects/SpoorplazaWatch/packages/Xamarin.Android.Support.v4.20.0.0.4/lib/MonoAndroid32/Xamarin.Android.Support.v4.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.3/Mono.Android.Export.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Net.Http.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll" --profiler="log"
	Task "Mandroid" execution -- FAILED
	Done building target "_Mandroid" in project "/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/AndroidMobile.csproj".-- FAILED
	
Done building project "/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/AndroidMobile.csproj".-- FAILED

Build FAILED.

Warnings:

/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/AndroidMobile.csproj (SignAndroidPackage) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (_ValidateAndroidPackageProperties target) ->

	/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/Properties/AndroidManifest.xml:  warning XA4211: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '18' is less than $(TargetFrameworkVersion) 'v4.4'. Using API-19 for ACW compilation.

Errors:

/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/AndroidMobile.csproj (SignAndroidPackage) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (_Mandroid target) ->

	:  mandroiderror XA0000: Invalid create-package command: -v --nosign --sdk-dir="/Users/twanaarts/Library/Developer/Xamarin/android-sdk-macosx/" --builddir="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/obj/Debug/android" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.4" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.3" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.2" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.1" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.0.3" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.3" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0" --framework-dir="/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/" -S="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/obj/Debug/res/" --package="SpoorplazaWatch.SpoorplazaWatch" --input="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/obj/Debug/android/bin/resources_and_assemblies" --output="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/obj/Debug/android/bin/SpoorplazaWatch.SpoorplazaWatch.apk"   --nolink --abi="arm64-v8a;armeabi;armeabi-v7a;x86;x86_64" --java-sdk-dir="/usr/" --debug --manifest-template="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/Properties/AndroidManifest.xml" --sdk-platform="19" -js="/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/WearListenerService.cs" "/Users/twanaarts/Projects/SpoorplazaWatch/AndroidMobile/bin/Debug/AndroidMobile.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.4/Mono.Android.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Json.dll" "/Users/twanaarts/Projects/SpoorplazaWatch/packages/Xamarin.GooglePlayServices.19.0.0/lib/MonoAndroid10/GooglePlayServicesLib.dll" "/Users/twanaarts/Projects/SpoorplazaWatch/packages/Xamarin.Android.Support.v13.20.0.0.4/lib/MonoAndroid32/Xamarin.Android.Support.v13.dll" "/Users/twanaarts/Projects/SpoorplazaWatch/packages/Xamarin.Android.Support.v4.20.0.0.4/lib/MonoAndroid32/Xamarin.Android.Support.v4.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.3/Mono.Android.Export.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Net.Http.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll" "/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll" --profiler="log"

	 1 Warning(s)
	 1 Error(s)

Time Elapsed 00:00:22.8643690

Package creation failed.
Comment 1 Atsushi Eno 2015-05-07 06:27:42 UTC
jonp: could you check if we have some inconsistent parameter passing between mandroid and Mandroid task?
Comment 2 Jonathan Pryor 2015-06-02 17:11:35 UTC
Please provide diagnostic build output: 

http://developer.xamarin.com/guides/android/troubleshooting/troubleshooting/#Diagnostic_MSBuild_Output
Comment 3 Jon Douglas [MSFT] 2017-09-14 18:54:12 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!