Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio - Unable to move Android SDK

Am trying to install Android Studio for first time. When I try to launch the application the setup wizard tries to download some components but then throws the following error:

Connecting to 'http://dl.google.com/android/android-sdk_r22.6.2-windows.zip'...
Downloading 'android-sdk_r22.6.2-windows.zip' from 'http://dl.google.com/android/android-sdk_r22.6.2-windows.zip'...
Unpacking android-sdk_r22.6.2-windows.zip
Unable to move Android SDK

Any ideas?

like image 289
HuwD Avatar asked Jan 15 '15 12:01

HuwD


People also ask

How to enable Android SDK in Android Studio?

Step 1: Opening Android Studio Settings. Navigate to the File > Settings option you will get to see below dialog screen. Inside that screen. Click on Appearance and Behavior option > System Settings options and then click on the Android SDK option to get to see the below screen.

How to update SDK path in Android Studio?

You can update your SDK path by clicking on the Edit option. After that select your SDK path, then click on Apply option, and then click on the OK option. Now sync your project with Gradle files to check that SDK is working fine.

How to move Android Studio SDK folder location in Windows?

To actually MOVE an existing Android Studio SDK folder location in Windows: Close Android studio. In windows File Explorer, MOVE the actual SDK folder. For example, my SDK folder was located here C:\Users\bfindling\AppData\Local\Android\sdk so I cut/pasted it to E:\Android\sdk

How do I download Android SDK from SDK manager?

Open the SDK Manager from Android Studio by clicking Tools > SDK Manager or click SDK Manager in the toolbar. Click the checkbox next to Android SDK Platform-Tools so it shows a checkmark. A download icon should appear in the left column.


2 Answers

When using Android Studio on Windows-based computers, I often stumbled upon this particular problem. Running Android Studio as admin (context-click on the application icon > Run as administrator) fixed the problem on every occurrence I’ve had so far.

My guess is that Android Studio doesn’t have write-rights to the path that is used and therefore needs the extended rights. On Linux and Mac OS, however, I have not yet had similar problems using Android Studio.

like image 78
PattaFeuFeu Avatar answered Sep 21 '22 05:09

PattaFeuFeu


Sounds like an access problem when unzipping the SDK. This can either be a permission problem or (in my case) the default SDK path resolved to a network share.

When going through the setup wizard, it asks if you want to use the Standard or Custom setup. The default option is the Standard one. However, when you use the Custom option, one of the pages is the location of the SDK folder. Verify that you have access to that path or select a different one.

like image 43
NeoStar Avatar answered Sep 22 '22 05:09

NeoStar