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

后端 未结 11 1783
轮回少年
轮回少年 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 13:48

    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.

    0 讨论(0)
  • 2020-12-02 13:54

    Copy your SDK folder and paste it in another folder without spaces (for example: "D: / Android / Sdk"), then open the SDK Manager, and change the Android SDK Location to the location of your new SDK folder

    0 讨论(0)
  • 2020-12-02 13:56

    There is another way:

    1. Open up CMD (as Administrator)
    2. Type: mklink /J C:\Program-Files "C:\Program Files" (Or in my case mklink /J C:\Program-Files-(x86) "C:\Program Files (x86)")
    3. Hit enter
    4. Magic happens! (Check your C drive)

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

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

    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.

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

    Just change

    C:\Users\Giacomo B\AppData\Local\Android\sdk

    to

    C:\Users\Giacomo_B\AppData\Local\Android\sdk

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

    I just wanted to add a solution for Mac users since this is the top article that comes up for searches related to this issue. If you have macOS 10.13 or later you can make use of APFS Space Sharing.

    • Open Disk Utility
    • Click Partition
    • Click Add Volume -- no need to Partition as we are adding an APFS volume which shares space within the current partition/container)
    • Give the volume a name (without spaces)
    • Click Add
    • You can now mount this drive like any other via Terminal: cd /Volumes/<your_volume_name>
    • Create an empty folder in the new volume -- I called mine sdk
    • You can now select the volume and directory while installing Android Studio
    0 讨论(0)
提交回复
热议问题