Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Deployment failure in VS 2019 for Mac - Xamarin issue - error ADB1000: Deployment failed

I am trying to debug an Android application in VS 2019 for Mac using the default Android emulator. The application builds successfully, but then the deployment on the emulator fails with the following error:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: Deployment failed /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: System.InvalidOperationException: '/Users/vesi90/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25/bin/jarsigner' exited with code '1': /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: at Xamarin.AndroidTools.PlatformPackage.Exec (System.String step, System.Diagnostics.ProcessStartInfo psi, Xamarin.AndroidTools.IProgressNotifier progressReporter, System.Threading.CancellationToken token) [0x0007d] in /Users/builder/azdo/_work/204/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/PlatformPackage.cs:237 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: at Xamarin.AndroidTools.PlatformPackage.Jarsigner (System.String unsigned, System.String packageDir, Xamarin.AndroidTools.IProgressNotifier progressReporter, System.Threading.CancellationToken token) [0x00057] in /Users/builder/azdo/_work/204/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/PlatformPackage.cs:259 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: at Xamarin.AndroidTools.PlatformPackage.GetPlatformPackagePath (System.Int32 apiLevel, System.String aaptPath, Xamarin.AndroidTools.IProgressNotifier progressReporter, System.Threading.CancellationToken token) [0x00158] in /Users/builder/azdo/_work/204/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/PlatformPackage.cs:127 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.InstallSharedPlatformAsync () [0x00080] in /Users/builder/azdo/_work/204/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:345 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.EnsureCorrectSharedRuntimes () [0x0017d] in /Users/builder/azdo/_work/204/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:266 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.RunAsync (System.Threading.CancellationToken token) [0x001f9] in /Users/builder/azdo/_work/204/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:194 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(616,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.RunLoggedAsync (System.Threading.CancellationToken token) [0x0002f] in /Users/builder/azdo/_work/204/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:119 1 Warning 1 Error

I have installed the Android SDK ver. 9.0. and all the tools for Android development in the installation of VS for Mac. The app is built with Xamarin. The app builds successfully on other Mac's and PC and it's verified that it works.

Please let me know why it fails to deploy using ADB on the emulator.

Best Answer

  • LeonLuLeonLu Member, Xamarin Team Xamurai
    Accepted Answer

    You can use following workaround to test it, if it works.

    1. Create a File > New > Project > Android App (Xamarin) project.
    2. Deploy and run the new project on a device or emulator in the Debug configuration.
    3. After the new app starts running successfully, you can go back to your original project and it should now deploy and run successfully.

Answers

  • Apps_2020Apps_2020 Member ✭✭
    Screenshot
  • LeonLuLeonLu Member, Xamarin Team Xamurai
    Accepted Answer

    You can use following workaround to test it, if it works.

    1. Create a File > New > Project > Android App (Xamarin) project.
    2. Deploy and run the new project on a device or emulator in the Debug configuration.
    3. After the new app starts running successfully, you can go back to your original project and it should now deploy and run successfully.
  • Apps_2020Apps_2020 Member ✭✭
    Hi, Leon,

    Thank you for your reply. I will test it and let you know.
  • Apps_2020Apps_2020 Member ✭✭
    Hello, Leon,

    It worked! Thank you so much! I appreciate it.
Sign In or Register to comment.