1

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 org.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. :/

2
  • Seems that it's missing the firebase auth auto generated code. have you tried running 'flutter clean' then flutter analyze and finally flutter build apk Commented Mar 27 at 12:46
  • Yes, I tried it before. I tried it again after your comment. I ran the three in order and when I ran "flutter build apk" it gave the same error again. Commented Mar 27 at 20:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.