-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [firebase_core] Could not find method platform() for arguments [com.google.firebase:firebase-bom:25.3.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.Def aultDependencyHandler. #3617
Comments
Hi @bjoffficial If the problem persists, Can you please provide your |
Hi, same issue with dependencies suggested by you. flutter channel beta |
I had the same problem as @bjoffficial, following @TahaTesser's suggestion, for me the solution was: flutter doctor -v output (click to expand)
|
I'm using firebase_crashlytics 0.2.0/ firebase_core 0.5.0. Upgrading gradle to 5.4.1 and using As @Renesanse and @jaween mention. Note: I am not using Google Services plugin so I didn't need to upgrade it. |
Add cloud_firestore in pubspec.yaml |
Same issue |
Fix: ``` A problem occurred evaluating project ':cloud_firestore'. > Could not find method platform() for arguments [com.google.firebase:firebase-bom:26.2.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. ``` according to firebase/flutterfire#3617 (comment)
As far as I can tell, this isn't an issue with the core package, and looks like a configuration problem with the application. |
Bug report
Could not find method platform() for arguments [com.google.firebase:firebase-bom:25.3.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.Def
aultDependencyHandler.
I recently added a firebase_messaging plugin to integrate Firebase Notifications. For android, It works fine before and when I made some changes for iOS It's crashing. I won't even be able to build the apk file. I'm not sure what's causing this error but some documentation shows it's because of the Gradle version and I did upgrade to the recent version but still I'm getting this error.
My Gradle file
android/app/gradle:
Project/gradle:
Whenever I run >flutter build apk --release
My terminal log will be like:
Additional context
So here is my Flutter doctor, verbose logs
Flutter doctor
Click To Expand
Flutter dependencies
Click To Expand
Flutter verbose Output
Click To Expand
The text was updated successfully, but these errors were encountered: