Android SDK Manager Not Installing Components

前端 未结 16 1637
你的背包
你的背包 2020-11-28 19:35

Not sure what I\'m doing wrong here. I installed the Android SDK Manager, and am now trying to install a platform like the Android Dev website suggests. Once I clicked insta

相关标签:
16条回答
  • 2020-11-28 19:38

    In my case I had to specify proxy settings in Tools->Options.

    0 讨论(0)
  • 2020-11-28 19:43

    In my case I was using Windows 7 with the 64-bit OS. We installed the 64-bit Java SE and 64-bit ADT Bundle. With that set up, we couldn't get the SDK manager to work correctly (specifically, no downloads allowed and it didn't show all the API download options). After trying all of the above answers and from other posts, we decided to look into the Java set up and realized it might the 64-bit configuration that's giving the ADT bundle grief (I vaguely recall seeing/reading this issue before).

    So we uninstalled Java 64-bit and reinstalled the 32-bit, and then used the 32-bit ADT bundle, and it worked correctly. The system user was already an admin, so we didn't need to "Run as Administrator"

    0 讨论(0)
  • 2020-11-28 19:45

    Try running Android Studio as an administrator, by right-clicking on the .exe and selecting "Run As Administrator".

    Also, some anti-virus programs have been known to interfere with SDK Manager.

    0 讨论(0)
  • 2020-11-28 19:46

    In windows 8:

    • right click on windows button
    • List item
    • CDM as administrator
    • Press 'yes'
    • paste this $ C:\xxx\xxx\AppData\Local\Android\sdk\tools\android.bat
    0 讨论(0)
  • 2020-11-28 19:48

    I was getting a similar permission issue and SDK Manager could not download and install new components. Error message was (I'm running Android Studio (I/O Preview) 0.2.9)

    "Unable to create C:\Program Files (x86)\Android\android-studio\sdk\temp"

    Although solution was infact what @william-tate's answer says, I could not run the 'SDK Manager' directly. It fails with message:

    Failed to execute tools\android.bat The system cannot find the file specified.

    Instead I ran the 'tools\android.bat' as Administrator, which in turn launched SDK Manager with same permissions which fixed the issue.

    Hope this helps for someone who faces the issue I faced.

    0 讨论(0)
  • 2020-11-28 19:48

    I had same problem when I try to install it on my pc (Win7, 64-bit system). I had an error message shown in figure below. But when I check my local folder 'C:\Users\username\AppData\Local\Android\sdk', the Android SDK is already there. Somehow Android studio could not see/link it.

    So please check first whether you can find the Android SDK in the local folder. If yes, just follow the next steps.

    1. Chose 'Cancel' and click on 'X' on the top right corner.
    2. Chose 'Do not re-run the setup wizard' and click 'OK'
    3. Start Android Studio again and go 'Configure'-->'Project Defaults' --> 'Project Structure'
    4. Add 'C:\Users\username\AppData\Local\Android\sdk' to 'Android Location' and click 'OK'
    5. Click on 'Start a new Android Studio project'.

    Hopefully it helps.

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