C:Users32148>flutter doctor —android-licenses
Flutter assets will be downloaded from https://storage.flutter–io.cn. Make sure you trust this source!
����: �������� com.android.sdklib.tool.sdkmanager.SdkManagerCli ʱ���� LinkageError
java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Android sdkmanager tool was found, but failed to run
(C:Users32148AppDataLocalAndroidSdkcmdline–toolslatestbinsdkmanager.bat): “exited code 1″.
Try re–installing or updating your Android SDK,
visit https://flutter.dev/docs/get–started/install/windows#android–setup for detailed instructions.
解决方案:
Windows
- 取消勾选and sdk command line tools (latest)
- 勾选 Android SDK command–line Tools 8.0
- 点击应用
- 在Windows, 将 “C:UsersUSERNAMEAppDataLocalAndroidSdkcmdline–tools” and 重命名 8.0 folder to “latest”
- 再次运行 Flutter doctor.
成功!
原文地址:https://blog.csdn.net/qq_42901723/article/details/132744960
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_13783.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!