How do I set ANDROID_SDK_HOME environment variable?

前端 未结 10 1635
我在风中等你
我在风中等你 2020-11-27 04:48

I\'m working with Eclipse on Windows 7, x64. I\'m getting an error when running ADT bundle of android development:

Error: Error parsing the AVDs

相关标签:
10条回答
  • 2020-11-27 05:09

    Copy your SDK path and assign it to the environment variable ANDROID_SDK_ROOT

    Refer pic below:

    0 讨论(0)
  • 2020-11-27 05:10

    If you face the same error, here are the step by step instructions:

    1. Open control panel
    2. Then go to System
    3. Then go to Change Environment Variables of the User
    4. Then click create a new environment variables
    5. Create a new variable named ANDROID_SDK_HOME
    6. Set its value to your Android directory, like C:/users/<username>/.android
    0 讨论(0)
  • 2020-11-27 05:10

    Although the above answers mostly get them right, there is one slight issue with them all.. Follow these steps and you are good to go

    1. Right click on This PC -> Properties
    2. On the left pane select "Advanced System Settings"
    3. On the new window select -> Advanced tab
    4. Click on the "Environment Variables" button
    5. On the first top section click on the "New" button

    set variable name -> ANDROID_HOME

    set variable value -> the custom location of the Android SDK

    1. Now click on the newly created variable name and in the box below select "Path" and click on the Edit button
    2. Now click on New and paste the location of the "platform-tools"
    3. Again click on New and paste the location of the "tools" You can find the locations of the above platform-tools and tools - they are generally inside the Android SDK folder
    4. MOST IMPORTANT OF ALL...

      save all those by clicking ok If you are using the terminal(cmd) close it and open it again

    0 讨论(0)
  • 2020-11-27 05:12

    This worked for me:

    1. Open control panel
    2. click System
    3. Then go to Change Environment Variables
    4. Then click create a new environment variables
    5. Create a new variable named ANDROID_HOME path C:\Android\sdk
    0 讨论(0)
提交回复
热议问题