android sdk no space,Android SDK location should not contain whitespace, as this cause problems with...

Recently I have installed the last version of Android Studio (Android Studio 2.1), keeping the old 1.2 version previously installed. Now i have Android Studio 2.1 and Android Studio 1.2. In Android Studio 1.2 when I click on SDK Manager it works properly, but in Andorid Studio 2.1 this problem appears:

2048a394d8d9e7a5530824a7772945cb.png

how can I fix keeping the two versions of Android studio? Thanks

As the warning message states, the SDK location should not contain whitespace.

Your SDK is at C:\Users\Giacomo B\AppData\Local\Android\sdk. There is a whitespace character in Giacomo B.

The easiest solution is to move the SDK somewhere else, where there is no space or other whitespace character in the path, such as C:\Android\sdk. You can point both Android Studio installations to the new location.

There is another way:

Open up CMD (as Administrator)

Type: mklink /J C:\Program-Files "C:\Program Files" (Or in my case mklink /J C:\Program-Files-(x86) "C:\Program Files (x86)")

Hit enter

Magic happens! (Check your C drive)

Now you can point to C:\Program-Files (C:\Program-Files-(x86)).

Willem

just change the path:

"c:\program files\android\sdk" to "c:\progra~1\android\sdk"

or

"c:\program files (x86)\android\sdk" to "c:\progra~2\android\sdk"

note that the paths should not contain spaces.

It is possible to make a symbolic link from e.g. C:\Android\sdk to the actual location of the sdk (which contains whitespaces), and refer to this symbolic link from within Android Studio as the location of the SDK. I have, however, not tried whether NDK will work with such a setup, even though Android Studio stops giving this warning about whitespaces.

Simply....If you are not using NDK, there is no problem at all. On the other this is just warning not an error. With warning you can go ahead but not errors. Any it's better to adjust the whitespaces.

E.g if your SDK is at C:\program file\Android studio. There is a whitespaces "program file".

There are 2 simple methods:

1. Remove the whitespaces

2. Install at another location which don't have whitespaces.

As long as you aren't using the NDK you can just ignore that warning.

By the way: This warning has nothing to do with parallel installations.

I have the same error, make some change in the path C:\Users\Juan Jose\App---- to

C:\Users\JUAN~1\App.

CMD Command (Windows) go to root c:\Users

Type de command DIR /X

Here show a Short name of Juan Jose

Reemplace the name Juan Jose with the Short Name give it.

Just remove white space of all folders present in the given path for example Program Files

You can remove it by following steps->

Open elevated cmd,

In the command prompt execute:

mklink /J C:\Program-Files "C:\Program Files"

This will remove space and replace it with "-".

Better do this with both sdk and jdk path.

This works :)

来源:https://stackoverflow.com/questions/37052934/android-sdk-location-should-not-contain-whitespace-as-this-cause-problems-with

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值