我在cordova platform add android
正确添加平台后遇到cordova问题,但是当我执行cordova build android
时,我从终端获取此信息:
cordova build android
ANDROID_HOME=/Users/Myusername/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
ERROR building one of the platforms: Error code 1 for command: /Users/Myusername/Desktop/Centro_Vista/Centro_Vista/Blabla_test/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/Myusername/Desktop/Centro_Vista/Centro_Vista/Blabla_test/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/Myusername/Desktop/Centro_Vista/Centro_Vista/Blabla_test/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/Myusername/Desktop/Centro_Vista/Centro_Vista/Blabla_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
当我在使用cordova构建ios时,它完美无缺。 我使用Mac OSX el Capitan v10.11.4,cordova 6.0.0,cordova-android @5.1.0,nodejs v4.2.2,This is my Android SDK Manager
提前致谢