Android Studio - How to Change Android SDK Path

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

    I noticed that the latest version of Android Studio doesn't seem to have the option "SDKs" path that's mentioned in many of the answers. I'm guessing that disappeared in one of the updates, somewhere down the line?

    The way i solved this issue (osx) was:

    1. Go to Project Settings (Cmd + ;)
    2. In SDK Location make sure you're pointing to the correct SDK location (typically /Applications/Android Studio.app/sdk) then hit Apply
    3. Most important step - hit "Sync Project with Gradle files"

    I wasn't doing Step 3 and that was throwing me off. After a sync all your source r belong to us....

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

    While first installation There are two situations either you have pre-installed Android SDK if you had used it in past or you have nothing at all, At a time of installation Installer always ask user how you want to configure SDK with your studio.

    You can simply give a path here or browse folder where sdk is available in local system. If you already have SDK, Another option as shown in below picture at Left down corner there is a nice option for download SDK, by clicking it you can download SDK with latest release right from there,You can also use third option see in right down corner setup Android SDK for me by clicking it you can step by step set your sdk.

    Although you can also set it up when Android shows you list of available projects, a starting prompt window shown below

    That's pretty easy, and also sometime if you want to change your SDK you can always change it right in your Android Studio from

    On windows system File --> Project Structure and then you will see SDK Location Option and from there you can set it up by providing a path or by browse it.

    Or if you are on MAC system then from Platform settings.

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

    Make your life easy with shortcut keys
    ctrl+shift+alt+S
    or

    by going to file->project structure:

    it will open this window, where you can select your SDK

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

    goto menu File->Project Strucurt or key Ctrl + Alt + Shift + S

    enter image description here

    and example http://how-to-android-studio.blogspot.com/2014/11/set-sdk-location.html

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

    You can also create the environment variable (in Windows) ANDROID_HOME to the location of the Android SDK and Android Studio will use that.

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

    Simple Answer Work For Sure...

    Step 1: Right Click On The Project>> Select Open Module Setting --> Step 2: Select SDK Location From the Right Side below image

    Step 3: Now browse the SDK location from your computer as show below...

    Step 4: Click on OK.

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