Bha*_*ana 21 java linux ubuntu flutter
我正在尝试在 Ubuntu 中使用 VS Code 设置 flutter。我已按照安装指南进行操作,并按照 flutter doctor 的要求安装了最新的 cmdline 工具。
\n现在这是我再次运行 flutter doctor 时得到的输出
\n \xe2\x9c\x97 Android license status unknown.\n Run `flutter doctor --android-licenses` to accept the SDK licenses.\n See https://flutter.dev/docs/get-started/install/linux#android-setup for more details. \nRun Code Online (Sandbox Code Playgroud)\n运行时flutter doctor --android-licenses出现以下错误
java.lang.UnsupportedClassVersionError: \ncom/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled \nby a more recent version of the Java Runtime (class file version 61.0), \nthis version of the Java Runtime only recognizes class file versions up to 55.0\nRun Code Online (Sandbox Code Playgroud)\nsudo apt install openjdk-17-jdk我尝试使用并设置环境变量升级到 Java 17 ,但问题仍然存在。
小智 42
I was able to resolve this issue on Windows 10 with these steps
Sdk/cmdline-tools folder. On my system it's located at C:\Users\<USER_NAME>\AppData\Local\Android\Sdk\cmdline-tools.8.0 folder to latestflutter doctor --android-licenses.小智 16
试试这个(适用于 Mac)...
/Users/Library/Android/sdk/cmdline-tools并将其重命名8.0为latest.| 归档时间: |
|
| 查看次数: |
31378 次 |
| 最近记录: |