2016-03-30 47 views
0

我正試圖在我的Mac上構建phonegap應用程序,並且即時考慮在Android設置中出現一些錯誤。當我做的PhoneGap構建Android即時得到以下錯誤在Mac上構建phonegap android應用程序

ERROR building one of the platforms: Error code 1 for command: /Users/un/Documents/Github/myapp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/un/Documents/Github/myapp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true 
You may not have the required environment or OS to build this project 
Error: Error code 1 for command: /Users/un/Documents/Github/myapp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/un/Documents/Github/myapp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true 

在我的bash profile.rc我添加

export ANDROID_HOME=/usr/local/opt/android-sdk 
export ANT_HOME=/usr/local/Cellar/ant/bin 

的應用程序工作正常的iOS。

回答

0

嘗試刪除該平臺,並添加再次

科爾多瓦平臺刪除IOS

科爾多瓦平臺添加IOS

`

相關問題