Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/prefs/AndroidLocationsProvider has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
flutter doctor 를 실행하면
android license를 위해 flutter doctor --android-licenses 를 실행 하라고 하지만..
에러..
원인은 jdk를 한개만 설치해라?
흐음..
여러개를 설치 할수 있기때문에
- Android Studio - SDK Manager - System Settings
- Androiod SDK Command-line Tools 을 8.0으로 변경
위와 같이 설정후
flutter doctor --android-licenses
flutter doctor
확인해보면 성공!
'www > flutter' 카테고리의 다른 글
[flutter] ( flutter || React Native ) + Kotlin/Swift => app (0) | 2023.09.12 |
---|---|
[flutter] subscribe (0) | 2023.09.11 |
flutter 정리 (0) | 2023.07.27 |
[flutter] mac Android Studio (version 2022.1) ✗ Unable to find bundled Java version. (0) | 2023.07.10 |
[flutter] CocoaPods not installed. (0) | 2023.07.09 |