简体   繁体   中英

JDK error while i run react-native-doctor but i already upgrade jdk version

So i have error while i run react-native-doctor

✖ JDK
   - Version found: 1.8.0_352
   - Version supported: >= 8
 ✓ Android Studio - Required for building and installing your app on Android
 ✓ Android SDK - Required for building and installing your app on Android
 ✓ ANDROID_HOME

can anyone solve that problem?

Try to install it with brew

brew tap homebrew/cask-versions
brew install --cask zulu11

Then check in terminal

java -version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM