Android许可证的问题,当我试图修复它时,问题出在Java中
当我输入flutter doctor
时
[√] Flutter (Channel stable, 3.7.1, on Microsoft Windows [Version 10.0.22621.1105], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.6)
[√] Android Studio (version 2022.1)
[√] VS Code (version 1.75.0)
[√] Connected device (3 available)
[√] HTTP Host Availability
! Doctor found issues in 1 category.
当我键入flutter doctor --android-licenses
时,出现此错误错误:发生JNI错误,请检查您的安装并重试线程“main”中出现异常,请帮助解决:face_with_monocle:注意:我电脑上的java和javac是同一个版本
1条答案
按热度按时间c6ubokkw1#
在命令提示符下运行此命令
并键入y和输入当你被问到。正如你提到的,你得到错误这里是你的错误的解决方案,这是在另一个问题https://stackoverflow.com/a/31523756/14466860检查这个