Changing SDK location in Android Studio: Whitespaces in directory location ERROR at 1st Start Up.

306 views
Skip to first unread message

Gregory Branch

unread,
May 1, 2017, 6:33:21 PM5/1/17
to android-ndk
First; I am a newbie.   Second, I am not the only one who wasted time with the problem described in the link below:
http://stackoverflow.com/questions/34127431/changing-sdk-location-in-android-studiowhitespaces-in-directory-location
since several others wrote about the same thing.

Question; why not inform users during the install process NOT to use the DEFAULT Win7 program files location: "C:\Program Files"  which includes a white space!  I wasted an hour with this.   Incidentally, the proposed fix shown on the web page link above did not work for me:

Here is how I fixed this issue. No need to relocate directories.

On Windows, open an elevated command prompt. Hit the Win key, type 'cmd', right click on the cmd prompt search entry, select 'Run as Administrator".

In the command prompt, execute: mklink /J C:\Program-Files "C:\Program Files"

This will create a space-free directory path that points into the same directory as used by space-friendly software.  Others reported it worked for them.   
I ended up completely uninstalling Android Studio and reinstalling it in a new directory with no "white spaces."   Then I was able to modify the other places for saved files as I installed.  My default user data was under "Greg Branch" name with the white space between my names.... I am not sure if Windows automatically created my name with the space or not, but Windows for sure created the "C:\Program Files" directory by default.  If your program is not going to work with that directory why don't you at least let your users know about the problem during startup.  Even better, why not make a default directory for them...  I hope someone who can affect the program installation software sees this.
Greg


Reply all
Reply to author
Forward
0 new messages