dart 错误:发生JNI错误,请检查您的安装并重试,

qyyhg6bp  于 2023-02-06  发布在  其他
关注(0)|答案(1)|浏览(277)

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是同一个版本

c6ubokkw

c6ubokkw1#

在命令提示符下运行此命令

flutter doctor --android-licenses

并键入y和输入当你被问到。正如你提到的,你得到错误这里是你的错误的解决方案,这是在另一个问题https://stackoverflow.com/a/31523756/14466860检查这个

相关问题