Кордова не может построить на Android - PullRequest
0 голосов
/ 03 мая 2018

кордовы не хотят строить с андроидом.

Компилируется под ios через Xcode.

Обнаружен проект 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: 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.

1 Ответ

0 голосов
/ 03 мая 2018

В сообщении об ошибке говорится, что необходим JDK 1.8 или выше. Какую версию JDK вы используете? Если вы не установили его, пожалуйста, установите с веб-сайта Java, в противном случае вам нужно будет указать путь к JDK в файле системных путей.

Если проблема не устранена, вам следует удалить все предыдущие версии JDK, включая 1.8, а затем установить последнюю версию JDK. Хотя удаление путей предыдущих версий JDK из переменной paths также должно работать.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...