[Mobi] cordova requirements,Exception in thread "main" java.lang.NoClassDefFoundError

 

Cordova App Preparation

https://quasar.dev/quasar-cli/developing-cordova-apps/preparation

 

$ cordova requirements

[Mobi] cordova requirements,Exception in thread

[Mobi] cordova requirements,Exception in thread

  https://www.java67.com/2012/08/what-is-noclassdeffounderror-in-java.html

  注意 Java JDK 需要与 Android SDK 相匹配。

 

JDK13 切换为 JDK8:

下载 JDK8(Java SE 8u231 )https://www.oracle.com/technetwork/java/javase/downloads/index.html

Mac 版 JDK 安装位置都在 /Library/Java/JavaVirtualMachines/

 

java 命令指向 JDK8,并 source 具体文件生效:

export JAVA_8_HOME=`/usr/libexec/java_home -v 1.8`
export JAVA_13_HOME=`/usr/libexec/java_home -v 13`

# 别名动态切换 JDK 版本
alias jdk8="export JAVA_HOME=$JAVA_8_HOME"
alias jdk13="export JAVA_HOME=$JAVA_13_HOME"

# 默认 JDK8
export JAVA_HOME=$JAVA_8_HOME

 

$ java -version

java-version

 

$ cordova requirements

[Mobi] cordova requirements,Exception in thread

$ brew install gradle

 

Link:https://www.cnblogs.com/farwish/p/12047714.html

你可能感兴趣的:([Mobi] cordova requirements,Exception in thread "main" java.lang.NoClassDefFoundError)