'First run of Android Studio. Unable to access Android SDK add-on list
After trying to reinstall Android Studio
, everything was fine until the first run.
While it was 'fetching Android SDK component information', it gave me an error saying:
Unable to access Android SDK add-on list
I clicked on Setup proxy, clicked on Auto-detect proxy settings, checked my connection (it said 'connection successful') then pressed ok
. After that it just came up with the same error. No progress.
Any ideas on what I can do next?
I have no experience with proxy, so I only used Auto-detect proxy settings to stay simple.
PS. I've searched, but all I can find is to go behind the proxy, but I don't have the permissions to edit idea.properties.
I'm using Windows 8.1 32 bit.
Solution 1:[1]
Turn off your firewall, and check if it works perfectly, then add android.bat
to trusted files in your windows firewall and restart firewall.
Solution 2:[2]
Rather than doing so many steps click on set-proxy click on auto set-proxy and then click on check box and then ok you are done
Solution 3:[3]
First of all you must be connected to the internet.
- Clear any DNS settings that might be present in your network adapter or router.
- Either turn off the firewall (windows or antivirus's) completely or add an exception.
- Stop any other application that might be using internet hence slowing it down.
- Close android studio completely and run SDK Manager to update all the components that are awaiting an update, especially addons.
Then run android studio.
Solution 4:[4]
I have the same issue under Ubuntu 14.04.
I setup my proxy in the network config system (it is ok with internet browser).
I setup my proxy with environment variables http_proxy and https_proxy.
As I use 64 bit machine, I also did:
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
$ javac -version
javac 1.7.0_80
Solution 5:[5]
Update the following code to C:\Program Files\Android\Android Studio\bin\idea.properties
disable.android.first.run=false
to
disable.android.first.run=true
Solution 6:[6]
Solution 7:[7]
Enviroment: Ubuntu 18.04, system Socks5 Proxy
Problem:
When I run the script ./studio.sh
, hit the same probem. The GUI and console show it is getting from http://dl.google.com/android/repository/addons_list-3.xml
but read times out.
Even if I set automatic find proxy in SDK Manager(I click "Checking Collection" and put above URI down, it shows success), it still doesn't work.
Solution
- Bypass the Android SDK when running start up script.
- Edit the file
idea.properties
in installation folder:{Path}/bin
- Append a new line
disable.android.first.run=true
- Run
./studio.sh
. At this time you can open Android Studio, but when you click "new project", it will prompt: No Android SDK is available. - Install Android SDK. In SDK manager, go to
Android SDK
and install. - Disable the previous bypassing. Now AS can be opened suceesfully. All we need to do is undo the bypassing:
disable.android.first.run=true
It seems that the system proxy works in the SDK manager, but not in the start up script.
Solution 8:[8]
Follow these simple step findout this path on your c drive in programer file C:\Program Files\Android\Android Studio\bin\idea.properties
open this file
- idea.properties add following line of disable.android.first.run=true
- again start Android studio
Solution 9:[9]
for windows 7 i just check "No proxy" and continue. it works for me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow