Ошибка сборки Cordova: не удалось определить версию Java от '11.0.6'

Окружающая обстановка:

MacOS:10.15.7

Java:1.8.0_241

оценка:4.6

Кордова:10.0.0

Вопрос:

Cordova построить не удалось

cordova build --scan
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Using Android SDK: /Users/zenghao/Library/Android/sdk

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '11.0.6'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Command failed with exit code 1: /Users/zenghao/.sdkman/candidates/gradle/4.6/bin/gradle -p /Users/zenghao/Code/work/MobileBot/mobilebot_app/platforms/android wrapper -b /Users/zenghao/Code/work/MobileBot/mobilebot_app/platforms/android/wrapper.gradle

но я проверил свою версию java, это не 11.0.6

jenv versions
  system
* 1.8.0.241 (set by /Users/zenghao/.java-version)
  11.0.6
  openjdk64-11.0.6
  oracle64-1.8.0.241

и моя версия Gradle

gradle -v

------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------

Build time:   2018-02-28 13:36:36 UTC
Revision:     8fa6ce7945b640e6168488e4417f9bb96e4ab46c

Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM:          1.8.0_241 (Oracle Corporation 25.241-b07)
OS:           Mac OS X 10.15.7 x86_64

Как исправить проблемы?

0 ответов

Другие вопросы по тегам