Has anyone faced this issue following the official documentation for react-native-firebase
?
ERROR: Could not find method platform() for arguments [c
Solution: put in android/gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip
Follow this link: https://github.com/FirebaseExtended/flutterfire/issues/3287
So, I think you're using Gradle 4.x. I had the same issue. Upgrading to 5.0 solved it: https://docs.gradle.org/current/userguide/upgrading_version_4.html