【问题标题】:Unable to add react native plugin无法添加反应原生插件
【发布时间】:2018-01-13 06:47:07
【问题描述】:

我正在尝试添加 react-native firebase 插件。 https://github.com/invertase/react-native-firebase 不幸的是我被困在这个问题上。任何帮助将不胜感激

check link

【问题讨论】:

    标签: react-native react-native-firebase


    【解决方案1】:

    在 Android Studio 上更新您的 app/build.gradle

    com.google.android.gms:play-services-gcm

    dependencies {
        compile(project(':react-native-firebase')) {
            transitive = false
        }
        ...
        
        // From node_modules
        compile project(':react-native-push-notification')
    >>> compile ('com.google.android.gms:play-services-gcm:11.6.0') {
            force = true;
        }
        // Firebase dependencies
        compile "com.google.android.gms:play-services-base:11.6.0"
        compile "com.google.firebase:firebase-core:11.6.0"
        compile "com.google.firebase:firebase-analytics:11.6.0"
    }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-14
      • 1970-01-01
      • 2018-11-11
      • 1970-01-01
      • 2019-02-21
      • 2018-01-16
      相关资源
      最近更新 更多