0
过去两天,我一直在拉我的头发,试图让cordova检测并安装项目的android平台。Cordova Android在Linux上安装
特定的错误:
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
Command finished with error code 8
我已经走遍了净的解决方案。这里是.bashrc文件:
export ANDROID_HOME=~/adt-bundle-linux-x86_64-20140702/sdk/platform-tools
export ANDROID_SDK_HOME=~/adt-bundle-linux-x86_64-20140702/sdk/platform-tools
export PATH=${PATH}:~/adt-bundle-linux-x86_64-20140702/sdk/tools
export PATH=${PATH}:~/adt-bundle-linux-x86_64-20140702/sdk/platform-tools
我运行此命令时出现错误:
sudo cordova platform add android -d
任何帮助,将不胜感激!
更多信息:
如果我运行“Android”的命令,我得到的SDK应用程序的启动,所以我知道的作品。我还安装了SDK的最新构建器和工具。