(Flutter) Exception: Gradle task assembleDebug failed with exit code 1

Saya mencoba clone project Flutter dari tim saya, setelah saya coba debug di local menemukan error "

Launching lib\main.dart on MI 5C in debug mode...
lib\main.dart:1

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings remapped class cache for bq3hllkgb26p0nrblf5gh8d37 (C:\Users\Authentification\.gradle\caches\6.3\scripts-remapped\settings_d8ohwnitaqxr6pkye1rcxerp7\bq3hllkgb26p0nrblf5gh8d37\settingsdeec0faa97453e2ce860d75e6bf1604b).
> Could not open settings generic class cache for settings file 'D:\Mechatronicslab\Presensi-Dishub-Tanggamus\android\settings.gradle' (C:\Users\Authentification\.gradle\caches\6.3\scripts\bq3hllkgb26p0nrblf5gh8d37\settings\settingsdeec0faa97453e2ce860d75e6bf1604b).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61

* 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 12s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

ini gradle saya:

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

Saya mencoba memecahkan masalah di  https://stackoverflow.com/questions/57238933/gradle-failure-a-problem-occurred-evaluating-project-app , itu tidak memecahkan masalah saya.

avatar mrbudbud
@mrbudbud

3 Kontribusi 0 Poin

Dipost 3 tahun yang lalu

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban