0
我收到以下錯誤「離子構建Android」給ANDROID_HOME錯誤
$ ionic build android
Running command: /home/dna/myApp1/hooks/after_prepare/010_add_platform_class.js /home/dna/myApp1
add to body class: platform-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 include path to valid SDK directory.
指前一個問題,我添加了以下到.bashrc文件,沒有任何成功解決問題
1.export ANDROID_HOME = /路徑/要/安卓/ SDK
2.export PATH = $ PATH:$ ANDROID_HOME/bin中
請協助
刪除第二行並重試。 –
@PrashantGhimire,我只用了第一行。但同樣的錯誤重複。該怎麼辦 ?謝謝。 – user227495
我認爲你必須添加的平臺,工具和工具這樣的: 出口ANDROID_HOME =〜/ Android的SDK PATH = $ PATH:$ ANDROID_HOME /工具 PATH = $ PATH:$ ANDROID_HOME /平臺的工具 –