Cristian Osorio
12/19/2024, 10:36 PMLaunching lib\main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':firebase_core'.
> Could not load compiled classes for build file 'C:\Users\Usuario\AppData\Local\Pub\Cache\hosted\pub.dev\firebase_core-3.9.0\android\build.gradle' from cache.
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':firebase_core' of type org.gradle.api.Project.
> Could not get unknown property 'android' for project ':firebase_core' 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 1s
Running Gradle task 'assembleDebug'... 2.044ms
Error: Gradle task assembleDebug failed with exit code 1
Vampire
12/19/2024, 11:19 PMfirebase_core
tries to get the Android extension while no Android plugin is applied. A --stacktrace
or build --scan
should give you more information about where exactly. I guess the version you depend on is not compatible with something else like your Gradle version or AGP version.Cristian Osorio
12/19/2024, 11:23 PMVampire
12/19/2024, 11:24 PMCristian Osorio
12/19/2024, 11:43 PMFailure 1 of 1A problem occurred configuring project ':firebase_core'.
Could not load compiled classes for build file 'C:\Users\Usuario\AppData\Local\Pub\Cache\hosted\pub.dev\firebase_core-3.9.0\android\build.gradle' from cache.
> build_3benskyrdeko3kq6t6ummx8n2
Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':firebase_core' of type org.gradle.api.Project.
> Could not get unknown property 'android' for project ':firebase_core' of type org.gradle.api.Project.
Exception
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':firebase_core'.
at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:84)
•••
Caused by: org.gradle.api.GradleException: Could not load compiled classes for build file 'C:\Users\Usuario\AppData\Local\Pub\Cache\hosted\pub.dev\firebase_core-3.9.0\android\build.gradle' from cache.
at org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler$ClassesDirCompiledScript.loadClass(DefaultScriptCompilationHandler.java:340)
•••
Caused by: java.lang.ClassNotFoundException: build_3benskyrdeko3kq6t6ummx8n2
at org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler$ScriptClassLoader.loadClass(DefaultScriptCompilationHandler.java:384)
•••
Caused by: org.gradle.internal.event.ListenerNotificationException: Failed to notify project evaluation listener.
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:111)
•••
Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'android' for project ':firebase_core' of type org.gradle.api.Project.
at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:85)
•••
at FlutterPlugin$_configurePluginProject_closure20.doCall(flutter.groovy:801)
•••
Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'android' for project ':firebase_core' of type org.gradle.api.Project.
at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:85)
•••
at FlutterPlugin.getCompileSdkFromProject(flutter.groovy:927)
•••
at FlutterPlugin$_detectLowCompileSdkVersionOrNdkVersion_closure21$_closure63$_closure64.doCall(flutter.groovy:869)
•••
Vampire
12/20/2024, 8:01 AMfirebase_core
does not have the Android plugin applied at that point.
I guess something in your setup is wrong. I recommend asking the maintainers of that lib or in some Flutter community