hiii im with problems, can someone help me please?...
# community-support
c
hiii im with problems, can someone help me please? Im attemping to run a flutter app and i get this message:
Copy code
Launching 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
v
Seems something in
firebase_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.
c
im ussion flutter run to compile, idk how to use that commands 😅
v
I don't use Flutter. Check it's docs how to give Gradle parameters.
c
this is what i get with --scan https://scans.gradle.com/s/536r4xw3lrqio
Copy code
Failure 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)	
•••
v
Well, the scan shows that Flutter tries to access the Android extension while
firebase_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
✅ 1