Android Studio - How to Change Android SDK Path

前端 未结 29 1671
甜味超标
甜味超标 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:36

    When I ran into trouble with this on Android Studio 3.1.4 the solution was to go into the app dropdown on my project, then Edit Configurations > Defaults > JAR Application where there is a JRE box on the initial Configuration tab. Setting that to my JRE path solved the problem for me.

    0 讨论(0)
  • 2020-11-22 03:37

    From the quick start window, choose Configure, then choose Project Defaults, and then choose Project Structure. Then on the left under Platform Settings choose SDKs. Then to the right of that choose the current android platform, mine was Android 4.2.2 Platform, and delete it using the red minus button at the top, then add a new android platform using the green plus button at the top and point it to your current SDK folder and that is it.

    0 讨论(0)
  • 2020-11-22 03:37

    Try this way i try in Android Studio 2.0
    Step 1: File->Setting
    Step 2: Seting->SDK option
    Step 3: Click Edit option in Sdk Location
    Step 4: Show "SDK Components Setup"
    Step 5: Click on Three "..." in "SDK Components Wizad"
    Step 6: Select your new SDK Path

    0 讨论(0)
  • 2020-11-22 03:37

    In Android studio 1.2.2 you can simply changes project based SDK, Steps:

    1. Right click on Module and select Open module setting or press F12
    2. Select SDK location from left hand side
    3. Now you can change SDK location as well as JDK location from this page
    0 讨论(0)
  • 2020-11-22 03:38

    Here is some ways, as far as I know now.

    • Android Studio 3.3.2 (testing is OK)

    method: 1

    just following steps of the official docs, as bellow link shows

    https://developer.android.com/studio/intro/studio-config#jdk

    method: 2

    following steps of the screen shortcuts, as bellow shows

    method: 3

    following steps of the screen shortcut, as bellow shows

    0 讨论(0)
  • 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 <Android Studio>/sdk/ <external SDK folder>/
    cd <Android Studio>/
    mv <Android Studio>/sdk/ mv <Android Studio>/sdk.orig
    ln -s <external SDK folder>/ 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 :).

    0 讨论(0)
提交回复
热议问题