Android emulation not working on Mac - error XA0010: Could not retrieve the Android ABI for the attached device or emulator.
See original GitHub issueDescription
I followed the tutorial for installing MAUI on Mac. https://github.com/dotnet/maui/wiki/macOS-Install
But no matter what I do, when I execute the following command, it cannot run the emulator and throws this error(see below):
> dotnet build -t:Run -f net6.0-android
MyMauiApp -> /Users/-USERNAME-/projects/ryder-poc/MyMauiApp/bin/Debug/net6.0-android/MyMauiApp.dll
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/32.0.415/tools/Xamarin.Android.Common.Debugging.targets(611,5): error XA0010: Could not retrieve the Android ABI for the attached device or emulator. Please reconnect the device or restart the emulator, and try again. [/Users/-USERNAME-/projects/ryder-poc/MyMauiApp/MyMauiApp.csproj]
Build FAILED.
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/32.0.415/tools/Xamarin.Android.Common.Debugging.targets(611,5): error XA0010: Could not retrieve the Android ABI for the attached device or emulator. Please reconnect the device or restart the emulator, and try again. [/Users/-USERNAME-/projects/ryder-poc/MyMauiApp/MyMauiApp.csproj]
0 Warning(s)
1 Error(s)
Steps to Reproduce
> dotnet build -t:Run -f net6.0-android
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
macOS Monterey (On a MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports)
Did you find any workaround?
No response
Relevant log output
No response
Issue Analytics
- State:
- Created a year ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
ADB0020: Android ABI mismatch. How do I set ABI of target ...
Forms Android application, Right click on your android project and then select Properties > Android Options > Advanced. You will see a dropdown ......
Read more >Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >Android Emulator Troubleshooting - Xamarin
This article explains how to diagnose and work around problems that may occur when using the Android Emulator.
Read more >My Journey to Setup Android Emulator for M1 MacBook Pro
My first impression of setting up Android App Development on an M1 MacBook Pro is not as positive as I hope to get...
Read more >Xamarin Visual Studio – Error ADB0020 Android ABI ...
Here is how you can resolve it. In Solution Explorer select your project. Right-click and select Properties or press Alt+Enter. Select Android ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jonathanpeppers so we might be able to improve the error message here. Currently it is
Could not retrieve the Android ABI for the attached device or emulator. Please reconnect the device or restart the emulator, and try again.We could expand on this.
Could not retrieve the Android ABI for the attached device or emulator with id {0}. Please reconnect the device or restart the emulator, and try again.This includes the id of the device we are tring to use. It might help users diagnose this issue.
I confirm this error is still happening, me and @brminnick came upon this again.
The project works from Visual Studio Community 2022 when I run it. But not from the command line when running the command:
dotnet build -t:run -f:net6.0-androidreturns