标签:android style blog http color io ar for sp
参考以下文章搭建ionic + cordova 的开发环境 --
前面还是比较顺利,但当开始试建测试工程helloword,运行 sudo ionic platform add android
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
at /Users/someone/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/lib/check_reqs.js:158:19
at _fulfilled (/Users/someone/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:798:54)
在/etc/profile 里添加PATH 和 ANDROID_HOME环境变量后,问题依然。
google 一把,发现也有人遭遇这个诡异的状况,没有人有办法解决。
最后受其中一篇回复的启发(其中提到要确保对sdk目录有写权限),把adt的sdk目录放到当前用户的~目录下,并且修改了权限:
chmod -R 777 sdk/
问题解决。
"ANDROID_HOME is not set and "android" command not in your PATH. "错误的解决办法
标签:android style blog http color io ar for sp
原文地址:http://www.cnblogs.com/kanputer/p/3994048.html