.NET MAUI, Android emulator is not ready to be used
Hossam Fares
5
Reputation points
I have also tried cleaning project, but it did not workI have installed x64 android emulator with API 21 on AMD CPU to get higher performance when I try to start debugging on it, I get 'There were deployment errors' and in the output window:
Waiting for emulator to be ready...
Emulator is not ready to be used.
I have followed this answer with no luck
I have tried to deploy manually to see if the issue is from the emulator or Visual Studio
- I have published the app to an apk
- and using the adb tool found in 'C:\Program Files (x86)\Android\android-sdk\platform-tools' I installed the apk using the command
adb install <apk_file_path>
.it installed the apk successfully and I can launch the app - then I tried to start the app using adb tool so I ran the command
adb shell am start -n com.package.name/.MainActivity
I got:
Error type 3 Error: Activity class {com.package.name/com.package.name.MainActivity} does not exist. Failed to launch android application
- so I added
Name
property on the Activity attribute on the MainActivity class and I have set it to "com.package.name.MainActivity", after adding this property the app worked properly using adb but still same issue in Visual Studio I have also tried cleaning project, but it did not work
Sign in to answer