在过去的两天里,我一直在努力让科尔多瓦检测并安装一个项目的 android 平台。
具体错误:
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 安装了最新的构建器和工具。