how to resolve The Android SDK licenses acceptance failed. These must be accepted to continue using Android. For more details, check the Xamarin Output. Double-click on this message to try this again.
Good morning, everyone. I'm trying to create a mobile application using .NET MAUI with .NET 9. When I attempt to debug the application by selecting Android Emulators, it asks me to accept the android-sdk-license. I click "Accept," and after granting authorization to the Android SDK Manager, I get the following error: "The Android SDK licenses acceptance failed. These must be accepted to continue using Android. For more details, check the Xamarin Output. Double-click on this message to try this again."
I also try accepts licenses using "sdkmanager --licenses" but it always gives me this message:
Warning: Errors during XML parse:Warning: Additionally, the fallback loader failed to parse the XML.
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
[=======================================] 100% Computing updates...
All SDK package licenses accepted.