本文介绍: 安装jdk17,若还不行,按以下步骤行动。

C:Users32148>flutter doctorandroid-licenses
Flutter assets will be downloaded from https://storage.flutterio.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:Users32148AppDataLocalAndroidSdkcmdlinetoolslatestbinsdkmanager.bat): “exited code 1″.
Try reinstalling or updating your Android SDK,
visit https://flutter.dev/docs/getstarted/install/windows#androidsetup for detailed instructions.

解决方案:

安装jdk17,若还不行,按以下步骤行动

Windows 

  1. 取消勾选and sdk command line tools (latest)
  2. 勾选 Android SDK commandline Tools 8.0
  3. 点击应用
  4. 在Windows, 将 “C:UsersUSERNAMEAppDataLocalAndroidSdkcmdlinetools” and 重命名 8.0 folder to “latest
  5. 再次运行 Flutter doctor.

 成功!

原文地址:https://blog.csdn.net/qq_42901723/article/details/132744960

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_13783.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注