이온 및 코도바를 설치했습니다.이오니아 코르도바 빌드 안드로이드가 작동하지 않습니다
빌드를 확인하고 IOS가 완벽하게 작동하지만 Android가 작동하지 않는 경우 에뮬레이션합니다.
내가 가진 메시지는 다음과 같습니다
> cordova build android
Android Studio project detected
Running command: /Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/hooks/after_prepare/010_add_platform_class.js /Users/hongzhiyuan/Desktop/nihao_app/app/niHAO
ANDROID_HOME=/Users/hongzhiyuan/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
studio
(node:28943) UnhandledPromiseRejectionWarning: CordovaError: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
at Object.module.exports.check_gradle (/Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/lib/check_reqs.js:150:18)
at StudioBuilder.prepEnv (/Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/lib/builders/StudioBuilder.js:216:23)
at Api.module.exports.run (/Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/lib/build.js:154:20)
at /Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/Api.js:342:43
at _fulfilled (/Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/node_modules/q/q.js:816:13)
at /Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/node_modules/q/q.js:624:44
at runSingle (/Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/Users/hongzhiyuan/Desktop/nihao_app/app/niHAO/platforms/android/cordova/node_modules/q/q.js:125:13)
(node:28943) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:28943) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I rm
안드로이드 플랫폼과 그것을 다시 설치하지만 여전히 같은 문제가있어. 어떤 생각이 어떻게 작동하게 할 수 있습니까?
mac 용 gradle을 설치하고 /home/Android/android-studio/gradle/gradle-4.1/bin' –
나는 gradle (brew install gradle을 사용)을 설치했으나 경로를 지정하는 방법을 모르겠다. – ChinaXiaoHong
경로를 변경하는 방법을 모른다. @MustafaLokhandwala – ChinaXiaoHong