Failed to find 'ANDROID_HOME' environment variable

执行以下命令时,报错: cordova platform add android

参考http://blog.csdn.net/zhq426/article/details/50390258

执行以下命令时,报错: 
C:\Users\Administrator\myApp>ionic build android

[Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting
it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to incl
de path to valid SDK directory.]
ERROR building one of the platforms: Error: cmd: Command failed with exit code
  • 1
  • 2
  • 3
  • 4
  • 5

配置环境变量

ANDROID_HOME=E:\Program Files\adt-bundle-windows-x86_64-20131030\sdk

PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

猜你喜欢

转载自blog.csdn.net/yyqjjw/article/details/78892361