首页 > 代码库 > ANDROID_HOME is not set and "android" command not

ANDROID_HOME is not set and "android" command not

ANDROID_HOME=$HOME/Git/adt-bundle-linux/sdk export ANDROID_HOME
PATH=$PATH:$ANDROID_HOME

ANDROID_PLATFORM_TOOLS=$ANDROID_HOME/platform-tools export ANDROID_PLATFORM_TOOLS
PATH=$PATH:$ANDROID_PLATFORM_TOOLS

ANDROID_TOOLS=$ANDROID_HOME/tools export ANDROID_TOOLS
PATH=$PATH:$ANDROID_TOOLS export PATH
PATH=$PATH:$HOME/

添加  以下四个系统变量

ANDROID_HOME =  D:\Android\adt-bundle3\adt-bundle-windows-x86-20131030\sdk

ANDROID_PLATFORM_TOOLS = D:\Android\adt-bundle3\adt-bundle-windows-x86-20131030\sdk\platform-tools

 ANDROID_TOOLS = D:\Android\adt-bundle3\adt-bundle-windows-x86-20131030\sdk\tools

在path 最后,添加  ;%ANDROID_HOME%

 

之后,执行以下语句就成功了

技术分享

 

ANDROID_HOME is not set and "android" command not