Closed TobiasLenzEconix closed 2 years ago
Looking at the error, it doesn't seem to be related to flutterfire, so closing from here. Also as a note, when you open an issue, please use new issue template and fill out requested details so that we'll have enough details to work with.
If you think the issue you are getting is due to flutterfire plugin, write in comments, fill out template and we'll address it.
What do you mean?
I used the template and files ind all the flutter doctor command output. If I uncomment the last line:
// ADD THIS AT THE BOTTOM apply plugin: 'com.google.gms.google-services'
the build succeeds
Have anyone solved this problem? It seems google-services is using deprecated (and removed) feature of gradle
@muhammadyusuf-kurbonov I somehow fixed it. But I am not sure what did the trick. I think in firebase changed the instructions for android.
e.g. no you need no use implementation platform('com.google.firebase:firebase-bom:29.2.1')
instead of:
implementation 'com.google.firebase:firebase-messaging:21.0.1'
but see the whole Firebase Android instruction for details.
Its a shame that no one tells you about the api changes...
Thank you. I will check 👍👍👍
I am also facing this issue anybody know how to fix it ? I am getting this issue only if I use agp 7.3.0-alpha07 and a project with firebase implemented otherwise if I use previous ago like 7.3.0-alpha03 then I didn't face this error. Here is the screenshot
@muhammadyusuf-kurbonov I somehow fixed it. But I am not sure what did the trick. I think in firebase changed the instructions for android.
e.g. no you need no use implementation platform('com.google.firebase:firebase-bom:29.2.1')
instead of:
implementation 'com.google.firebase:firebase-messaging:21.0.1'
but see the whole Firebase Android instruction for details.
Its a shame that no one tells you about the api changes...
It didn't work for me
I also had this kind of error with my project. after some reverting back changes i noticed the error only came when using the
'com.google.gms:google-services:4.3.10'
dependency.
after changing back the google service version to 4.3.5 the error was resolved.
I hope this helps
I also had this kind of error with my project. after some reverting back changes i noticed the error only came when using the
'com.google.gms:google-services:4.3.10'
dependency. after changing back the google service version to 4.3.5 the error was resolved.I hope this helps
THANK YOU! It works!
Bug report
flutter build appbundle
Steps to reproduce
Steps to reproduce the behavior:
android/app/build.gradle:
android/build.gradle:
Expected behavior
The build fails with the above error message.
Additional context
Add any other context about the problem here.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` [✓] Flutter (Channel stable, 2.10.3, on macOS 12.2.1 21D62 darwin-arm, locale en-DE) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1) [✓] Chrome - develop for the web [!] Android Studio (not installed) [✓] IntelliJ IDEA Community Edition (version 2021.3.1) [✓] VS Code (version 1.65.0) [✓] Connected device (2 available) [✓] HTTP Host Availability ```Flutter dependencies
Run `Dart SDK 2.16.1 Flutter SDK 2.10.3 AppName 1.0.5+36
dependencies:
dev dependencies:
transitive dependencies:
Click To Expand
``` PASTE OUTPUT INSIDE HERE ```