After trying to reinstall Android Studio
, everything was fine until the first run.
While it was \'fetching Android SDK component information\', it gave
Try to enable firewall exception like below to make SDK to get downloaded automatically:
First of all you must be connected to the internet.
Then run android studio.
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
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
idea.properties
in installation folder: {Path}/bin
disable.android.first.run=true
./studio.sh
. At this time you can open Android Studio, but when you click "new project", it will prompt: No Android SDK is available.Android SDK
and install.disable.android.first.run=true
It seems that the system proxy works in the SDK manager, but not in the start up script.
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
Turn off your firewall, and check if it works perfectly, then add android.bat
to trusted files in your windows firewall and restart firewall.