Hi Graddle community, I am having the following while compiling my flutter project:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':cloud_firestore'.
> Failed to create Jar file C:\Users\<username>\.gradle\caches\jars-8\fef84f4f98be9f93b0b593ccb1e3e207\lint-model-31.1.2.jar.
> 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
Running Gradle task 'assembleDebug'... 4.8s
Exception: Gradle task assembleDebug failed with exit code 1
It started after i added firebase_storage dependency and this issue is now persisting .
I have tried updating plugins and sdks from android studio as well puting the latest versions of dependencies in pubsec.yaml file but it is of no avail. I have repaired pub cache as well and gone through every possible solution available on stackoverflow and github community but the error has not been resolved.