1

After installing Android Studio the SDK location was set to C:\Users\Omar Abdelhafiz\AppData\Local\Android\Sdk,

but it shows me a warning saying Android SDK location should not contain white space, as this can cause problems with the NDK tools.

So I want to change the directory to Omar_Abdelhafiz instead of Omar Abdelhafiz.

How can I do this?

Thanks in advance.

SNS
  • 485
  • 6
  • 20
Android Admirer
  • 2,310
  • 2
  • 17
  • 38

1 Answers1

1

Manually go to the directory and change your folder name after change your sdk folder path will be like this

C:\Users\Omar_Abdelhafiz\AppData\Local\Android\Sdk

Now come to your Android Studio: File>>Settings>>Appearance & Behavior>System Settings>Android SDK>>Now in Right side panel there will be Android SDK Location Change that with your new SDK path, then Apply and OK click

Note: Next is you have to change in your system environment variables if you are using windows for platform tools path. This is my platform tools path which I put in windows system enviornment variables path E:\Rahul\AndroidTool\ANDROID_SDK\sdk\platform-tools

To set system environment variable path for platform tools follow Set the Android SDK Home Environment Variable

It's done

enter image description here

Ready Android
  • 3,529
  • 2
  • 26
  • 40
  • Do you think I haven't tried that? you can't change the name manually. – Android Admirer Jan 07 '17 at 05:09
  • What issue you faced after this? Actually I was also getting this issue previously as you can see my new path in image. Previously my path was having Android Tools and now it's having AndroidTools – Ready Android Jan 07 '17 at 05:11
  • I simply couldn't change the directory manually, try it go to the users directory right click on a user you can't find the rename option – Android Admirer Jan 07 '17 at 05:17
  • But what is the need to keep Android SDK in C:\Users\ folder you can use it in another folder as I am using it in E: drive – Ready Android Jan 07 '17 at 05:22
  • I just wanted to keep the default, do you see I should put it in another directory – Android Admirer Jan 07 '17 at 05:24
  • Are you not able to rename other folders as well in C:\Users\ directory? Once check because may be it can be issue with related to edit permission for you. Because I am able to rename any folder in my C:\users drive – Ready Android Jan 07 '17 at 05:26
  • I can't rename this user and public file, But The other files can be renamed – Android Admirer Jan 07 '17 at 05:29
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/132550/discussion-between-ready-android-and-omar-abdelhafiz). – Ready Android Jan 07 '17 at 05:30