-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Closed
Labels
r: solvedIssue is closed as solvedIssue is closed as solved
Description
Steps to reproduce
Use Android Studio Narwhal 4 Feature Drop | 2025.1.4 Canary 4 create new flutter project ,then upgrade project.
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "9.0.0-alpha04" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}
gradle-9.1.0-rc-3-bin
Flutter 3.36.0-0.5.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 6c79484210 (2 weeks ago) • 2025-08-27 16:02:04 -0700
Engine • hash 7f92ad05adebe99f2ffb55c86e1ba44804d3aece (revision 56f64c2647) (19 days ago) • 2025-08-22 23:54:20.000Z
Tools • Dart 3.10.0 (build 3.10.0-75.1.beta) • DevTools 2.49.0
build project error:
* What went wrong:
An exception occurred applying plugin request [id: 'kotlin-android']
> Failed to apply plugin 'kotlin-android'.
> class com.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecorated_Decorated cannot be cast to class com.android.build.gradle.BaseExtension (com.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecorated_Decorated and com.android.build.gradle.BaseExtension are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @7e1bb44b)
Expected results
build success
Actual results
build failed
Code sample
Code sample
[Paste your code here]
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "9.0.0-alpha04" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[Paste your output here]
[√] Flutter (Channel beta, 3.36.0-0.5.pre, on Microsoft Windows [版本 10.0.26100.4202], locale zh-CN)
[√] Windows Version (Windows 11 or higher, 24H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.8)
[√] Connected device (3 available)
[!] Network resources
X A cryptographic error occurred while checking "https://storage.googleapis.com/": Connection terminated during handshake
You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware installed on your computer.
X A cryptographic error occurred while checking "https://maven.google.com/": Connection terminated during handshake
You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware installed on your computer.
Metadata
Metadata
Assignees
Labels
r: solvedIssue is closed as solvedIssue is closed as solved