科尔多瓦罐头';t构建在android上
cordova不想使用android构建 它通过Xcode在ios下编译 检测到Android Studio项目科尔多瓦罐头';t构建在android上,android,node.js,cordova,build,Android,Node.js,Cordova,Build,cordova不想使用android构建 它通过Xcode在ios下编译 检测到Android Studio项目 ANDROID_HOME=/Users/arthurdoreau/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home (node:61518) UnhandledPromiseRejectionWarning: CordovaError: Requir
ANDROID_HOME=/Users/arthurdoreau/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
(node:61518) UnhandledPromiseRejectionWarning: CordovaError: Requirements check failed for JDK 1.8 or greater
at /Users/arthurdoreau/Documents/Deeky/platforms/android/cordova/lib/check_reqs.js:370:19
at _fulfilled (/Users/arthurdoreau/Documents/Deeky/platforms/android/cordova/node_modules/q/q.js:854:54)
at /Users/arthurdoreau/Documents/Deeky/platforms/android/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/Users/arthurdoreau/Documents/Deeky/platforms/android/cordova/node_modules/q/q.js:816:13)
at /Users/arthurdoreau/Documents/Deeky/platforms/android/cordova/node_modules/q/q.js:624:44
at runSingle (/Users/arthurdoreau/Documents/Deeky/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/Users/arthurdoreau/Documents/Deeky/platforms/android/cordova/node_modules/q/q.js:125:13)
at process._tickCallback (internal/process/next_tick.js:172:11)
(node:61518) 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:61518) [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.
错误消息表示需要JDK1.8或更高版本。您使用的是哪个JDK版本?如果尚未安装,请从Java网站安装,否则需要在系统路径文件中设置JDK的路径
如果问题仍然存在,您应该卸载所有以前的JDK,包括1.8,然后安装最新的JDK。虽然从paths变量中删除以前JDK版本的路径应该也能起作用。我使用JDK-10.0.1I做到了,但我如何将JDK路径放入我的系统中?我在macosx手下