First of all, I am new to developing applications with flutter. I am developing my project in android studio. When I select windows(desktop) as the flutter device, my application works without any problems, but when I try to run it on my android phone or an android device in avd manager, I get this error:
Where: Build file 'C:\mb_projects\app3\android\build.gradle' line: 11
What went wrong: A problem occurred evaluating root project 'android'.
Could not find method implementation() for arguments [com.firebaseui:firebase-ui-auth:8.0.2] on object of type .gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I can also run flutter's sample project Counter (which does not include firebase auth) on an android device.
I would be very happy if you could help me. I have been trying to solve this problem for a long time. :/