Android SDK location should not contain whitespace, as this cause problems with NDK tools

后端 未结 11 1784
轮回少年
轮回少年 2020-12-02 13:21

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 Andro

相关标签:
11条回答
  • 2020-12-02 14:06

    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.

    0 讨论(0)
  • 2020-12-02 14:06

    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.

    0 讨论(0)
  • 2020-12-02 14:06

    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 :)

    0 讨论(0)
  • 2020-12-02 14:10

    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.

    0 讨论(0)
  • 2020-12-02 14:10

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

    1. CMD Command (Windows) go to root c:\Users
    2. Type de command DIR /X Here show a Short name of Juan Jose
    3. Reemplace the name Juan Jose with the Short Name give it.
    0 讨论(0)
提交回复
热议问题