Android Studio - How to Change Android SDK Path

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

    Though many of the above answers serve the purpose, there is one straight forward thing we can do in project itself.

    In Eclipse, go to Window->Preferences, select "Android" from left side menu. On the right panel you will see "SDK Location". Provide the path here.

    Good luck.

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

    This is how its done,in Android Studio for windows

    Done

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

    Here's how you can change the android sdk path in Android studio:

    1. Open your required android project in Android studio
    2. Click on the main project folder and press F4
    3. Now click on "SDKs" under Platform Settings (Left hand side of the dialog box)
    4. You should now see a plus sign on the top, click it and choose "Android SDK"
    5. Now you would be asked to choose the required SDK folder
    6. Select the required build target(if necessary) and click "ok"
    7. Now you should see the new entry in the list of SDKs
    8. Click "Modules" under Project Settings
    9. Select your project folder and in the Dropdown for "Module SDK", select the new SDK entry and click "apply"
    10. Now click "OK" and your done.

    Note: If changes do not take effect, restarting android studio should fix the problem.

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

    I Configured in this way

    on

    Welcome to Android Studio Screen

    Click Configure Then

    Project Defaults and then Project Structure

    Then Android SDK and Selected the path to my current location of Android SDK enter image description here

    enter image description here

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

    EUREKA I found it!

    With the current Studio 1.3 each project has a local.properties file where you can edit the SDK!

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

    I had the same problem, but with the sdk path pointing to a mounted drive. I found, that simply quit Android Studio, unmount the device and restart Android Studio made it ask for the sdk location, because it had none (Android Studio Beta 0.8.7).

    Therefore I guess if you just quit Android Studio, delete \android-studio\sdk or move it somewhere else and start Android Studio again, it should ask for the sdk location aswell.

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