简体   繁体   中英

Updating Android SDK Tools on Visual Studio 2015

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 ?

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM