ERROR: Could not find method platform() for arguments - React Native - Firebase

前端 未结 2 2118
独厮守ぢ
独厮守ぢ 2021-02-13 22:42

Has anyone faced this issue following the official documentation for react-native-firebase?

ERROR: Could not find method platform() for arguments [c         


        
相关标签:
2条回答
  • 2021-02-13 23:25

    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

    0 讨论(0)
  • 2021-02-13 23:36

    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

    0 讨论(0)
提交回复
热议问题