Flutter gradle error: Upgrade the Android Gradle Plugin (AGP) version? @LalitKanyaltech

Опубликовано: 21 Март 2026
на канале:
2,377
24

Flutter Android Gradle Plugin Fix
How do I upgrade the Android Gradle Plugin (AGP) version?
android gradle plugin (agp) versions less than 8.2.1

#flutter #android #Issue #coding
BUILD FAILED in 14s

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐
│ [!] This is likely due to a known bug in Android Gradle Plugin (AGP) versions less than 8.2.1, │
│ when │
│ 1. setting a value for SourceCompatibility and │
│ 2. using Java 21 or above. │
│ To fix this error, please upgrade your AGP version to at least 8.2.1. The version of AGP that │
│ your project uses is likely defined in: │
│ E:\fitness app\1.0\flutter_application_1_0\android\settings.gradle, │
│ in the 'plugins' closure (by the number following "com.android.application"). │
│ Alternatively, if your project was created with an older version of the templates, it is likely │
│ in the buildscript.dependencies closure of the top-level build.gradle: │
│ D:\fapp\1.0\flutter_application_1_0\android\build.gradle, │
│ as the number following "com.android.tools.build:gradle:". │
│ │
│ For more information, see: │
│ https://issuetracker.google.com/issue...
│ https://github.com/flutter/flutter/is...
└─────────────────────────────────────────────────


Tech Channel moved to "Lalit Kanyal Tech"

IMPORTANT UPDATE:
This channel is now for Chess content only

All new Tech videos are uploaded here: ‪@LalitKanyaltech‬