'Flutter build fails [Execution failed for "cloud_firestore-3.1.12".]
**FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring project ':cloud_firestore'.
Could not load compiled classes for build file 'C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-3.1.12\android\build.gradle' from cache. Failed to notify project evaluation listener. Could not get unknown property 'android' for project ':cloud_firestore' of type org.gradle.api.Project. Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Could not get unknown property 'android' for project ':cloud_firestore' of type org.gradle.api.Project.
- 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 3s Exception: Gradle task assembleDebug failed with exit code 1**
my current flutter project which uses the following firebase packages
cloud_firestore: ^3.1.12 firebase_core: ^1.14.1 firebase_auth: ^3.3.14 firebase_storage: ^10.2.12 firebase_messaging: ^11.2.13
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
