【问题标题】:Error: Could not find or load main class in flutter after updating android studio to 4.1错误:将 android studio 更新到 4.1 后无法在颤振中找到或加载主类
【发布时间】:2021-03-10 23:01:11
【问题描述】:

enter image description here

我在将 android studio 更新到 4.1 后运行“flutter doctor -v”时收到此错误 [如图所示]

''' Flutter(Channel dev,1.24.0-10.2.pre,在 Microsoft Windows [版本 10.0.18363.1198],语言环境 en-IN)

• Flutter version 1.24.0-10.2.pre at C:\Flutter\flutter

• Framework revision 022b333a08 (10 days ago), 2020-11-18 11:35:09 -0800

• Engine revision 07c1eed46b

• Dart version 2.12.0 (build 2.12.0-29.10.beta)

[!] Android 工具链 - 为 Android 设备开发(Android SDK 版本 30.0.2)

• Android SDK at C:\Users\ABDUL KABEER\AppData\Local\Android\Sdk

• Platform android-30, build-tools 30.0.2

• ANDROID_HOME = C:\Users\ABDUL KABEER\AppData\Local\Android\Sdk

• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java

• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

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.

[√]Android Studio(4.1.0版)

• Android Studio at C:\Program Files\Android\Android Studio

• Flutter plugin can be installed from:

   https://plugins.jetbrains.com/plugin/9212-flutter

• Dart plugin can be installed from:
   https://plugins.jetbrains.com/plugin/6351-dart

• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS 代码(版本 1.51.1)

• VS Code at C:\Users\ABDUL KABEER\AppData\Local\Programs\Microsoft VS Code

• Flutter extension version 3.16.0

[!] 连接的设备

! No devices available

!医生发现了 2 类问题。'''

当我运行 flutter doctor --android-licenses 时,我

我收到此错误:错误:无法找到或加载主类 KABEER\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\..

【问题讨论】:

    标签: android flutter


    【解决方案1】:

    要正确使用,请确保您的名字之间没有任何空格......例如: “KABEER\”都是你的名字吗?

    【讨论】:

    • 如果我的用户名是 mike tyson\appdata,我该如何解决这个问题
    猜你喜欢
    • 2021-06-03
    • 2018-06-14
    • 1970-01-01
    • 1970-01-01
    • 2016-06-12
    • 2016-03-16
    • 2016-01-03
    • 1970-01-01
    相关资源
    最近更新 更多