Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 这就是我每次尝试运行main.dart中flatter提供的代码时都会遇到的错误_Flutter_Dart_Flutter Dependencies_Flutter Android_Flutter Compiler - Fatal编程技术网

Flutter 这就是我每次尝试运行main.dart中flatter提供的代码时都会遇到的错误

Flutter 这就是我每次尝试运行main.dart中flatter提供的代码时都会遇到的错误,flutter,dart,flutter-dependencies,flutter-android,flutter-compiler,Flutter,Dart,Flutter Dependencies,Flutter Android,Flutter Compiler,但事实并非如此。我已经安装了android studio,但我的flatter doctor显示我还没有安装它,还有一些许可证问题我不知道如何解决 这是我的《颤振医生》的结果 FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\devsh\Desktop\programs_\StudioProjects\untitled\android\build.gradle' line: 24 * What

但事实并非如此。我已经安装了android studio,但我的
flatter doctor
显示我还没有安装它,还有一些许可证问题我不知道如何解决

这是我的《颤振医生》的结果

    FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\devsh\Desktop\programs_\StudioProjects\untitled\android\build.gradle' line: 24

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Could not open proj generic class cache for build file 'C:\Users\devsh\Desktop\programs_\StudioProjects\untitled\android\app\build.gradle' (C:\Users\devsh\.gradle\caches\6.7\scripts\67wpoy60578g543vmv9v5k2r9).
      > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
Exception: Gradle task assembleDebug failed with exit code 1

对于Android许可证问题,在命令行上运行
flatter-doctor--Android许可证
时会发生什么?希望它能让您完成接受许可证的步骤


对于不支持的类问题,运行Gradle clean是否解决了问题?要做到这一点,您应该能够在命令行上导航到projects android目录并运行
gradlew clean

这是否回答了您的问题?不,这不是我想要的答案
C:\Users\devsh>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Version 10.0.19042.985], locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    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.
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
[√] VS Code (version 1.55.2)
[√] Connected device (2 available)

! Doctor found issues in 3 categories.