Android SDK missing with Android Studio 3

前端 未结 10 1463
夕颜
夕颜 2020-12-05 17:54

I\'ve just downloaded Android Studio 3 for Windows from the official website, but when it starts, it displays an error message about a missing Andro

相关标签:
10条回答
  • 2020-12-05 18:16

    I had to manually create
    C:\Users\[USERNAME]\AppData\Local\Android\Sdk

    and then I downloaded the tools from Command Line Tools Only section on: https://developer.android.com/studio/#downloads

    then I extracted the files to:
    C:\Users\[USERNAME]\AppData\Local\Android\Sdk

    Hope this helps someone.

    0 讨论(0)
  • 2020-12-05 18:20

    by thanks from @Harsh.jaiswal

    just delete this files:

     1. c/user/<your system name>/androidstudioproject
     2. c/user/<your system name>/.android
     3. c/user/<your system name>/AppData/Local/Android (keep hidden files on)
    

    So AS will automatically download the required files

    0 讨论(0)
  • 2020-12-05 18:21

    try to reinstall it and download(automatically downloaded) the required file after restart, but follow the steps

    1 go to your main drive(consider 'c') then c/user//androidstudioproject and copy it to some other location(save your old projects to safe location)

    2 uninstall android studio from control panel

    3 delete following file

        a c/user/<your system name>/androidstudioproject
    
        b c/user/<your system name>/.android
    
      c 'c/user/<your system name>/AppData/Local/Android (keep hidden files on)'
    

    4 now install your androidstudio from its setup

    these will automatically download the required files after installation (always connect to internet while installing)

    0 讨论(0)
  • 2020-12-05 18:21

    You can download sdk tools separately.

    https://developer.android.com/studio/#downloads
    Go to this link and download the sdk tools from under "Command line tools only".

    after download, extract the zip file and move it to C:\Users\USERNAME\AppData\Local\Android\Sdk

    If not worked, change sdk location from android studio

    0 讨论(0)
  • 2020-12-05 18:22

    Apparently, the problem was that Android Studio 3.0 had already been installed and uninstalled before this. The SDK got removed, but Android Studio's config didn't.

    Removing the config from a previous install (C:\Users\<user>\.AndroidStudio3.0 folder) did the trick. When Android Studio started up, it opened a dialog about which parts of the SDK to download, and then proceeded as expected.

    0 讨论(0)
  • 2020-12-05 18:22

    If you're on MacOS, the Android Studio installer puts the bundled SDK files into ~/Library/Android/sdk/

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