'The android sdk location cannot be at the filesystem root
I have installed Android Studio in the F:\ drive. My Flutter project is in the E:\ drive.
The Flutter plugin is installed in the Android Studio. But when I open my project in Android Studio and I go to the SDK Manager, it shows the following error:
The android sdk location cannot be at the filesystem root
Every package is disabled and the checkboxes are disabled, so I cannot click them to install Android SDK. The "Edit" link next to the error is not working either.
Solution 1:[1]
I came with the same problem because of forgetting "sudo"
Solution 2:[2]
Just press Edit ( It is clickable) then download and install the required components.
Solution 3:[3]
Download the SDK first, and restore the default settings.
You can find the "Restore default settings" feature here.
Solution 4:[4]
Using the new android studio (bumble bee version) . Restart the app and make sure you have an internet access That will be enough to create the SDK and it’s directories
Solution 5:[5]
For me it was the system language on Windows, I have changed it to English and it worked.
Solution 6:[6]
You can clear invalidate caches and restart android studio like follow picture:
Then start download sdk files :)
Solution 7:[7]
I searched for many hours for an answer to this I reinstalled:
- I opened a new folder called Android in C:
- Into it I reinstalled the android studio
- You have created a new sdk folder within it Then in the blank path I entered C: \ Android \ sdk And that's how it all worked. Try it!
Solution 8:[8]
What you can do is that you click on edit to surely you will get some version of Android that installs it by default and you click on next it will open another configuration verification window and you click on the next one for last it will tell you or It will update the version of android that was downloaded by default and you click again to finish and you can just select other versions of Android. That worked for me. Linux Ubuntu 20.04.4 LTS
Step 1:
Step 2:
Step 3:
Step 4:
Ready!!
Solution 9:[9]
Make sure that your internet is working and try to close VPN connections if you have any. Then restart Android Studio and hope for the best.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow