Could not open cp_settings generic class cache for settings file || An exception occurred applying..

Опубликовано: 06 Июнь 2026
на канале: IhsanUllah
237
3

Could not open cp_settings generic class cache for settings file || Un.. class file major version 65

An exception occurred applying plugin request [id: 'com.android.application']



Complete console flutter error one:
FAILURE: Build failed with an exception.

What went wrong:
Could not open cp_settings generic class cache for settings file '/Users/ihsanullah/Desktop/flutter_project/akugbe2/android/settings.gradle' (/Users/ihsanullah/.gradle/caches/8.0/scripts/dtxq05nxsdddjjhwf51tbtvg2).
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

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 597ms

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │
│ for Gradle. │
│ │
│ If you recently upgraded Android Studio, consult the migration guide at │
│ https://flutter.dev/to/java-gradle-in.... │
│ │
│ Otherwise, to fix this issue, first, check the Java version used by Flutter by running `flutter │
│ doctor --verbose`. │
│ │
│ Then, update the Gradle version specified in │
│ /Users/ihsanullah/Desktop/flutter_project/akugbe2/android/gradle/wrapper/gradle-wrapper.properti │
│ es to be compatible with that Java version. See the link below for more information on │
│ compatible Java/Gradle versions: │
│ https://docs.gradle.org/current/userg... │
2
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1


Second Error full console result:

FAILURE: Build failed with an exception.

Where:
Build file '/Users/ihsanullah/Desktop/flutter_project/akugbe2/android/app/build.gradle' line: 2

What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
Failed to apply plugin 'com.android.internal.version-check'.
Minimum supported Gradle version is 8.7. Current version is 8.5. If using the gradle wrapper, try editing the distributionUrl in /Users/ihsanullah/Desktop/flutter_project/akugbe2/android/gradle/wrapper/gradle-wrapper.properties to gradle-8.7-all.zip