The first installation it was fine, Android Studio and the SDK was installed properly. Later on I have a problem with SDK and had to reinstall Android Studio. But when I try to reinstall Android Studio, I can't see an option to install the SDK:
And when I launch Android Studio, I am getting the error:
"Please provide the path to the Android SDK."
How can I install the SDK properly?
What I tried:
\%USER%\AppData\Local\
.Answers here are out of date or wrong and so many sources have the wrong info or only part of it. You can use the following steps (steps for windows, but you can adapt):
<drive>/Users/<Username>/AppData/Local/Android/Sdk
cmdline-tools
with the wrong sub structure
<drive>/Users/<Username>/AppData/Local/Android/Sdk/cmdline-tools/latest
cmdline-tools
bin and lib folders (and any other files) inside the latest
dircd <drive>/Users/<Username>/AppData/Local/Android/Sdk/cmdline-tools/latest/bin
sdkmanager "platforms;android-28"
(or pick a platform of your own)y
and waitI finally found the solution this morning after battling Android Studio/SDK for quite some time! In my local AppData I deleted the .gradle directory (which was just short of 2 GiB) and I now get an SDK during Android Studio install.
I went through the installation process, opened Android Studio & went to import an existing project. The SDK folder was absent, there were no SDK platforms installed & I couldn't check-select them for installation through the settings.
Closing Android Studio and then re-opening it as administrator prompted the downloading of additional components (SDK tools, emulator-related stuff, etc), solving the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With