Reputation: 1219
I'm trying to build an Android app with Xamarin in Visual Studio 2015. But when I opened Main.axml, it showed an error
The installed Android SDK is too old, Newer is required.
After that, I try to upgrade Android SDK Tools from AVD Manager, However I got the following error message:
Downloading Android SDK Tools, revision 24.4.1 URL not found: C:\PROGRA~1\Android\ANDROI~1\temp\tools_r24.4.1-windows.zip (Access is denied)
How do I resolve this problem ?
Upvotes: 1
Views: 11707
Reputation: 1219
I resolved this problem.The problem was Xamarin itself was not updated, as a consequence SDK Manager could not able to found windows.zip file. Here is the solution to update Xamarin..
Visual Studio 2015 → Tools → Options → Xamarin → Other
Select the Xamarin for Visual Studio Updates as "Stable". Then click on Check Now and download Xamarin.
Now update the Android SDK Tools..
Go on Tools → Android → Android SDK Manager. From there update the Android SDK tools.
To finish. Restart Visual Studio.
Upvotes: 4
Reputation: 974
I would probably suggest granting the SDK manager in your Android SDK directory Admin privileges:
Navigate to:
C:\PROGRA~1\Android\ANDROI~1\
Right-click AVD Manager > Properties > Compatibility > Run this program as an administrator
Upvotes: 0
Reputation: 1
The zip file is opened by other application or C:\PROGRA~1\Android has no write permission for you. Close all other applications (or if in boubt simply reboot) and check permission on that directory and add to your user write permission. However, if you have other tools like Android Studio, is better to have a shared sdk for all. In VS you can change sdk location in Tools -> Options -> Xamarin -> Android settings menu.
Upvotes: 0