如何设置ANDROID_SDK_HOME环境变量? [英] How do I set ANDROID_SDK_HOME environment variable?

查看:3037
本文介绍了如何设置ANDROID_SDK_HOME环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7,x64上使用Eclipse。运行Android开发ADT捆绑包时,我收到错误:


错误:解析AVDs时出错

无法使用获取Android SDK主目录。

确保环境变量ANDROID_SDK_HOME已设置。


我知道问题是什么是因为它链接到错误的目录C:users:????



如何将此环境变量android_sdk_home设置为正确的目录?



请给我确切的步骤,如打开 cmd.exe ,键入这个等我不好在此,我从来没有编码任何其他网站。

解决方案

如果你面对同样的错误,步骤说明:


  1. 打开控制面板

  2. 然后转到系统

  3. 然后转到用户的更改环境变量

  4. 然后点击创建一个新的环境变量

  5. 创建一个名为ANDROID_SDK_HOME的新变量

  6. 将其值设置为您的Android目录,如 C:/ users /< username> /。android


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
Unable to get the Android SDK home directory.
Make sure the environment variable ANDROID_SDK_HOME is set up.

I know what the issue is. Is it because it is linked to a wrong directory C:users:????

How do I set this environment variable android_sdk_home to the proper directory?

Please give me precise steps on how to do it such as open cmd.exe, type this etc. I'm not good at it, I've never coded anything other that websites.

解决方案

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

这篇关于如何设置ANDROID_SDK_HOME环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆