Make notes and notes.
refer to this
https://www.cnblogs.com/luodengxiong/p/5736806.html
How to install multi version JDK and switch under mac
Recently, I ran the old Android project and installed multiple JDK versions… Automatically installed by the as,
as a result, the Android version of the RN project reported an error. The main reason is that JDK 1.8
is required due to the problem of JDK Version (originally 1.8, openjdk 1.6 is automatically installed due to the old project…)
* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
View the current version of JDK
/usr/libexec/java_home -V
If you need to switch the JDK version, just use 1.8.
refer to this for details
Install multi version JDK and switch several methods under MAC
personal use is. Bash_ The configuration mode of profile file is also convenient for switching in the future
It should be noted that after I switch, it still doesn’t take effect, and NR still can’t run,
finally enter the path of openjdk 1.6 and delete it
Read More:
- Eclipse specifies JDK version to start, and resolves version XXXX of the JVM is not suitable
- The problem of mobile hybrid development RN Android deployment appears Unsupported class file major version xx
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Uninstall JDK and run Java – version with error
- How to solve the problem of requirements check failed for JDK 8 when Cordova 9.0 is built
- This version of chromedriver only supports chrome version 92 crawler simulates the problem of Google plug-in version when the browser clicks and reports an error
- Solve the problem of jdk8 after win7 is installed. Has value ‘1.8’, but ‘1.7’ is required
- When using ionic to build Android APK, Cordova error is reported: requirements check failed for JDK 1.8 or greater
- [actual record of Android stepping on the pit] Android studio reports an error invalid gradle JDK configuration found after importing the project
- How to solve the problem of “version 11 or greater is required” in eclipse 2020
- Solve the problem that the version of less is too high
- Mac Upgrade pip WARNING: You are using pip version 21.1.1; however, version 21.1.3 is available. You s
- Solve the problem of available for offline mode in Android studio compilation
- Solve the problem of docker error: Unsupported compose file version: 3.2
- [Linux] solve the error of decompressing JDK on Linux gzip: stdin: not in gzip format
- Android 8.1 compilation error Jack server problem
- [error record] invalid gradle JDK configuration found
- Solve the problem that target code version of Maven project sub module in IntelliJ idea is always rolled back
- Start eclipse and prompt version 1.7.0_ 79 of the JVM is not suitable for this product. Version: 1.8 or greater i…
- RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd