www/flutter
[flutter] doctor --android-licenses
금이아빠s
2023. 7. 9. 15:04
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
확인해보면 성공!