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。