First run of Android Studio. Unable to access Android SDK add-on list

前端 未结 8 1102
醉梦人生
醉梦人生 2020-12-29 04:51

After trying to reinstall Android Studio, everything was fine until the first run.

While it was \'fetching Android SDK component information\', it gave

相关标签:
8条回答
  • 2020-12-29 05:11

    Try to enable firewall exception like below to make SDK to get downloaded automatically:

    0 讨论(0)
  • 2020-12-29 05:15

    First of all you must be connected to the internet.

    1. Clear any DNS settings that might be present in your network adapter or router.
    2. Either turn off the firewall (windows or antivirus's) completely or add an exception.
    3. Stop any other application that might be using internet hence slowing it down.
    4. Close android studio completely and run SDK Manager to update all the components that are awaiting an update, especially addons.

    Then run android studio.

    0 讨论(0)
  • 2020-12-29 05:24

    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

    0 讨论(0)
  • 2020-12-29 05:26

    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

    1. 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
    1. 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.
    2. Install Android SDK. In SDK manager, go to Android SDK and install.
    3. 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.

    0 讨论(0)
  • 2020-12-29 05:27

    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
    
    0 讨论(0)
  • 2020-12-29 05:33

    Turn off your firewall, and check if it works perfectly, then add android.bat to trusted files in your windows firewall and restart firewall.

    0 讨论(0)
提交回复
热议问题