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的最新構建器和工具。