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
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.
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
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)
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
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.
If you're on MacOS, the Android Studio installer puts the bundled SDK files into ~/Library/Android/sdk/