Issue
I downloaded a fresh copy of Visual Studio 2019 Community Edition. For installation, I selected only the Xamarin workload for mobile development. I created a new Xamarin.Forms project and it immediately gives the following error:
When I double click the message, I am prompted to Accept the Android SDK License Agreement. I click accept, and nothing changes, I just keep repeating those steps.
Navigating to the Android SDK Manager shows an empty list with an error:
All the solutions I have found online have not worked for me:
- Enable "Auto-Install Android SDKs" in Xamarin options
- Run Visual Studio as Administrator
- Create custom AndroidSdkManager.exe.config file
- Uninstall and re-install Visual Studio
- Verified JAVA_HOME variable is set correctly
The only thing that resolved the error (before I uninstalled) was changing the Android SDK Manager repository from Microsoft to Google:
This doesn't seem like a proper solution given the warning message shown so I am wondering what else I can do.
Solution
I was running on Windows 7. The issue was resolved after upgrading to Windows 10 and the Android SDKs installed correctly.
Answered By - Reddy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.