5

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.

enter image description here

Drarig29
  • 1,446
  • 16
  • 37
Ayan
  • 65
  • 1
  • 1
  • 7

9 Answers9

2

I came with the same problem because of forgetting "sudo"

1

Just press Edit ( It is clickable) then download and install the required components.

  • 1
    The Edit link is not working. I tried that many times. But cannot understand why. – Ayan Jun 24 '21 at 10:00
1

Download the SDK first, and restore the default settings.

You can find the "Restore default settings" feature here.

Drarig29
  • 1,446
  • 16
  • 37
  • From where I can download the sdk separately? When I am going to download sdk it tells me to download the Android Studio every time. – Ayan Jul 27 '21 at 06:41
  • I have downloaded platform-tools from https://android-sdk.en.softonic.com/. Added the path in Environment variables. And selected Restore Default Settings in Android Studio. But the android sdk is still not working. Still every package is disabled and the checkboxes are disabled. Where am I doing wrong? – Ayan Jul 27 '21 at 07:36
  • I have managed to install SDK version 31.0.2 but flutter 2.2.3 requires version 30. Cannot find version 30 from anywhere. Can you help please? – Ayan Jul 30 '21 at 15:27
1

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

Airick
  • 11
  • 1
1

For me it was the system language on Windows, I have changed it to English and it worked.

Omar Hatem
  • 11
  • 1
0

You can clear invalidate caches and restart android studio like follow picture:

enter image description here

Then start download sdk files :)

Ehsan Kalali
  • 193
  • 2
  • 12
  • 1
    Tried many times, but no luck. Can't understand why package checkboxes are disabled. – Ayan Aug 24 '21 at 12:07
  • I have tried this also in WSL package. SDK Manager says at edit stage, an automatic version of sdk has been found, but once in preferences > sdk manager trying to enable some android version - the option checkboxes are greyeed out and disabled. The preferences has a blank textbox saying the 'not at filesys root' message – mschr Jan 11 '22 at 22:24
0

I searched for many hours for an answer to this I reinstalled:

  1. I opened a new folder called Android in C:
  2. Into it I reinstalled the android studio
  3. 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!
0

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!!

Majid Roustaei
  • 1,194
  • 1
  • 14
  • 31
-1

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.

Christian C
  • 129
  • 6