Android Studio - How to Change Android SDK Path

前端 未结 29 1833
甜味超标
甜味超标 2020-11-22 03:18

When I open Android SDK Manager from Android Studio, the SDK Path displayed is:

\\android-studio\\sdk

I want to change th

29条回答
  •  [愿得一人]
    2020-11-22 03:39

    Changing the sdk location in Project Settings will solve the problem partially. When Android Studio is used to download a new SDK, it will place the new SDK in the internal SDK folder (inside Android Studio).

    Existing android developers will already have a large sdks folder (hereinafter referred to as external SDK folder) containing all the SDKs downloaded before Android Studio came around.

    For Mac/Linux users though there is a good way out. Soft links!

    Exit Android Studio and perform the following steps:

    cp -r /sdk/ /
    cd /
    mv /sdk/ mv /sdk.orig
    ln -s / sdk
    

    And we're good to go. Launch SDK Manager after starting Android Studio, watch as it discovers all your existing SDKs like a charm :).

提交回复
热议问题