Android Studio - How to Change Android SDK Path

前端 未结 29 1820
甜味超标
甜味超标 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:44
    1. Tap --> file --> close current project.

    You'll Android Studio home page

    1. Click on Configure -> Project Defaults -> Project Structure

    2. Click on SDK Location in the left column and copy the path.

    3. Paste the path in My computer --> Right Click -> Properties -> click on Advanced system settings -> Environment variables and change the android home path.

    4. click on 'OK' to save the session.

    5. Add tools and platforms tools in path and save the changes.

    6. Open command prompt[window+R] and type adb + enter.

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

    This may not be what you want, but being an eclipse user I had the same problem having duplicate sdk folders which were eating all my ssd space. Currently you can only change sdk path inside android studio project wide which is annoying. What I did instead was I copied all the previous android sdk files that I was using with eclipse to /Android Studio/sdk/ and then just changed the sdk path inside eclipse.

    Now both android studio and eclipse are happy.

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

    In Android Studio you can set the general Android SDK path in the file: %Home%.AndroidStudio2.1\config\options\jdk.table.xml

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

    in windows press ctrl+shift+alt+s which will open project properties where you can find first option named SDK Location click on it and there you can change SDK path, JDK path and NDK path also

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

    For Android Studio 3.1.2:

    Tools>> SDK Manager>> Edit "Android SDK Location" to new location

    After that, Set environment variable $ANDROID_HOME to your new SDK location

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

    From Android Studio 1.0.1

    Go to

    1. File -> project Structure into Project Structure
    2. Left -> SDK Location
    3. SDK location select Android SDK location (old version use Press +, add another sdk)
    0 讨论(0)
提交回复
热议问题