Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when run Android studio IDE

When I launch Android studio I encounter this Error:

enter image description here

    The following SDK components were not installed: build-tools-21.1.1, source-21, sys-img-x86-addon-google_apis-google-21,      extra-android-m2repository, android-21, extra-google-m2repository, addon-google_apis-google-21, tools, platform-tools 

And when I click retry, it gives me the same error:

enter image description here

like image 346
Farshid Shekari Avatar asked Dec 22 '14 11:12

Farshid Shekari


People also ask

What is IDE error?

IDE Error messages can also appear after an attempt to upgrade or swap an IDE drive with another drive not specifically made for the computer. The error may occur due to an incorrect ;master/slave setting on the drive, or for other reasons.

Why is my Android Studio Emulator not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Can I use Android Studio as IDE?

Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA .


2 Answers

Configure a proxy for Android studio by modifying other.xml file at:

C:\Users\"Your account"\.AndroidStudio\config\options\other.xml

Then change the proxy configurations as follows:

<option name="USE_HTTP_PROXY" value="true" /> <option name="USE_PROXY_PAC" value="false" /> <option name="PROXY_HOST" value="your_proxy_server" /> <option name="PROXY_PORT" value="your_proxy_port" /> 
like image 50
Erfan Jazeb Nikoo Avatar answered Oct 20 '22 18:10

Erfan Jazeb Nikoo


code.google.com/p/android/issues/detail?id=82789

  1. download build-tools21.1.1 google link or dehkadeco.ir link

  2. sdk will be located under C:\Users\<>\AppData\Local\Android\sdk.

  3. You may find that 21.1.2 is already in place C:\Users\<>\AppData\Local\Android\sdk\build-tools Create a folder with name "21.1.1" under this.

  4. Copy all the files from the downloaded build-tools:21.1.1 under android-5.0 to C:\Users\<>\AppData\Local\Android\sdk\build-tools\21.1.1

  5. Start the Android studio now.

like image 31
abmousavi Avatar answered Oct 20 '22 18:10

abmousavi