Flutter and Firebase Versions

2020-09-13T02:48:56.000Z

I love working with flutter but the firebase packages and versioning is messy. I can see that it’s getting better but these errors are painful.

 

FAILURE: Build failed with an exception.

  • Where: Build file ‘C:\Users\home\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_functions-0.6.0\android\build.gradle’ line: 49

  • What went wrong: A problem occurred evaluating project ‘:cloud_functions’. > 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.DefaultDependencyHandler.

and on iOS

In Podfile: cloud_functions (from .symlinks/plugins/cloud_functions/ios) was resolved to 0.6.0, which depends on Firebase/Functions (~> 6.26.0)

Specs satisfying the Firebase/Functions (= 6.15.0, ~> 6.0), Firebase/Functions (~> 6.26.0) dependency were found, but they required a higher minimum deployment target.

My solution is to stay a version back until this gets sorted.