5

I open up Android Studio. Then I open up SDK manager. I have the most up to date version but, I need Android 6.0 for my SDK platform. It doesn't even let me click anything.

In this image you can see the text and check boxes are discolored. I can't click anything inside the SDK Platform, or even the the Tools and update sites. I can't check the box "Show Package Details". You can see a screenshot bellow.

enter image description here

I have installed and changed it sucessfully on another laptop of mine, but I can't get it to work here.

Viral Patel
  • 32,418
  • 18
  • 82
  • 110
Aleka
  • 242
  • 1
  • 15

3 Answers3

0

Your sdk path has problem.The sdk path you provided has whitespace.Remove that and reset path again.Rename your path to remove whitespace.set something like "C:\Users\Tarique_Shams\AppData\Local\Android\sdk".

DkThakur
  • 516
  • 2
  • 5
  • 17
  • Is there an easier way to doing it than uninstalling and reinstalling in a different directory? – Aleka Apr 05 '17 at 11:09
  • Just rename your path.Rename your folder from Tarique Shams to Tarique_Shams or TariqueShams. thats it. – DkThakur Apr 05 '17 at 11:10
  • I thought I couldn't changer a User Account folder? – Aleka Apr 05 '17 at 11:17
  • What do you mean by this?i can't understand. – DkThakur Apr 05 '17 at 11:18
  • I don't have a rename option when I right-click the folder. I was doing some reading and found this: https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_security/rename-user-account-folder-in-windows-10-preview/88033eca-6b32-47c5-90ac-a5e7af17d094 – Aleka Apr 05 '17 at 11:21
  • I will try to fix this my reinstalling and setting up in a different directory. – Aleka Apr 05 '17 at 11:22
  • it means you are not the admin of the system then ask admin to rename this. – DkThakur Apr 05 '17 at 11:22
0
  1. Open Command Prompt
  2. Switch to users directory - cd c:\users
  3. Type dir /x and hit Enter
  4. See the short name for your user directory "Tarique Shams"

Example of where you'll see it (highlighted in yellow are the short names for directories with white spaces in the name):

enter image description here

  1. For your directory "Tarique Shams" it should be TARIQU~1 (But, cross check with the dir /x command)
  2. Replace "Tarique Shams" in the path with TARIQU~1
  3. Save! You are good to go now.

In short: Your path should be something like this:

C:\Users\TARIQU~1\AppData\Local\Android\Sdk

Viral Patel
  • 32,418
  • 18
  • 82
  • 110
0

The problem was I had a white space in my SDK location. To solver it you can change folder name as DKThakur mentioned. In my case I couldn't because it was a User Account. I then tried solving it by using the short name as AndroidMechanic posted. I ran into some complications and just ended up reinstalling Android Studio and the SDK completely after deleting it completely from my computer including and local data. I installed it in another folder with no white spaces. Both DKThakur and AndroidMechanic posted solutions that work, but this is how I did it.

Here is a link to another post of how to completely develet android studio and sdk from your machine: How to completely uninstall Android Studio from windows(v10)? .

Community
  • 1
  • 1
Aleka
  • 242
  • 1
  • 15