Changing SDK location in Android Studio:Whitespaces in directory location

青春壹個敷衍的年華 提交于 2019-12-04 11:57:00

Change location to (in my case its located here)

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

Try Copying files in these folders or delete files and reinstall from the sdk manager

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.

If it is located in your home directory, as it seems to be by default, you can open up a Command Prompt to see what the "DOS" version of your home directory looks like:

dir /x C:\Users

Look at the 4th column, and it should show the valid 8-character (max) directory name that can be used in the Android Studio path.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!