在Mac上构建phonegap android应用程序
我正试图在我的Mac上构建一个phonegap应用程序,我想我的Android设置中有一些错误。当我做phonegap构建android时,我得到了以下错误在Mac上构建phonegap android应用程序,android,macos,cordova,ant,Android,Macos,Cordova,Ant,我正试图在我的Mac上构建一个phonegap应用程序,我想我的Android设置中有一些错误。当我做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/G
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中运行良好。尝试删除该平台,然后再次添加 cordova平台删除ios cordova平台添加ios `