~/Desktop/react native/01$ npx @react-native-community/cli doctor
⠧ Running diagnostics...
info Detected that command has been run outside of React Native project, running basic healthchecks.
Common
✓ Node.js - Required to execute JavaScript code
✓ yarn - Required to install NPM dependencies
✓ npm - Required to install NPM dependencies
Android
✓ Adb - Required to verify if the android device is attached correctly
### ✖ JDK - Required to compile Java code
- ### Version found: 11.0.20.1
- Version supported: >= 17 <= 20
✓ Android Studio - Required for building and installing your app on Android
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
Errors: 1
Warnings: 0
as per react native offical documentaion React Native currently recommends version 11 of the Java SE Development Kit
🐛 Bug Report
npx @react-native-community/cli doctor
Steps to reproduce the behavior:
as per react native offical documentaion React Native currently recommends version 11 of the Java SE Development Kit
react native documentaion
Link to runnable example or repository (highly encouraged)
Environment information
Yesterday i created one project with react native cli work fine and if open that project still work fine but getting error with new project