Error When Run Android Studio Ide
Solution 1:
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:
<optionname="USE_HTTP_PROXY"value="true" /><optionname="USE_PROXY_PAC"value="false" /><optionname="PROXY_HOST"value="your_proxy_server" /><optionname="PROXY_PORT"value="your_proxy_port" />
Solution 2:
code.google.com/p/android/issues/detail?id=82789
download build-tools21.1.1 google link or dehkadeco.ir link
sdk will be located under C:\Users\<>\AppData\Local\Android\sdk.
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.
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
Start the Android studio now.
Solution 3:
Try to rename folder 21.1.2
inside Android SDK build-tools
folder (in my case it was c:\Users\prokofyev\AppData\Local\Android\sdk\build-tools\21.1.2
) to android-5.0
(in my case it became c:\Users\prokofyev\AppData\Local\Android\sdk\build-tools\android-5.0
). This way I fixed similar error on new Android Studio installation.
Solution 4:
Android Studio was not able to connect to internet in my work PC due to Intranet Proxy/Firewall settings, changing the proxy settings didnt help me either.
Android studio was failing to run as it requires to install the above mentioned packages. As a work around I installed the packages from Android SDK Manager and it solved it.
You can find the SDK Manager under C:\Users\< UserName> \AppData\Local\Android\sdk\SDK Manager.exe In the GUI choose the following options whichever is relavant.
- Tools->All Android SDK Build-tools and SDK Platform-tools under version 21.*
- Everything under Android 5.0.1(API 21)
- Everything under Extras
After installation is complete try launching the Android Studio
Solution 5:
Adding to answer by @Erfan , If you are using automatic configuration script instead of a proxy server , Change the settings as below :
C:\Users\"Your account".AndroidStudio\config\options\other.xml
Then change the line about proxy configurations like this:
<componentname="HttpConfigurable"><optionname="PROXY_TYPE_IS_SOCKS"value="false" /><optionname="USE_HTTP_PROXY"value="false" /><optionname="USE_PROXY_PAC"value="true" /><optionname="PROXY_HOST"value="" /><optionname="PROXY_PORT"value="80" /><optionname="PROXY_AUTHENTICATION"value="true" /><optionname="PROXY_LOGIN"value=" your User Name" /><optionname="PROXY_PASSWORD_CRYPT"value=" Your Domain Password " /><optionname="KEEP_PROXY_PASSWORD"value="false" /><optionname="myGenericPasswords"><map /></option><optionname="myGenericCancelled"><set /></option><optionname="PROXY_EXCEPTIONS"value="" /><optionname="USE_PAC_URL"value="true" /><optionname="PAC_URL"value=" Put Pac Url Here mentioned in Auto Config Script " /></component>
Post a Comment for "Error When Run Android Studio Ide"