我正在尝试将react-native-firebase添加到新创建的expo项目中,我成功弹出了应用程序,但是当我尝试添加库时,项目无法构建,并且出现以下错误
ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0.
1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.android.gms:play-services-flags:15.0.1 -> com.google.android.gms:play-services-basement@[
15.0.1], but play-services-basement version was 16.2.0.
Run Code Online (Sandbox Code Playgroud)
我更新了所有 firbase 依赖项,但它仍然失败,然后我使用这一行强制停止错误,这样我至少可以构建
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
以前的错误消失了,但我保留了不同的错误。例如:
Error: Program type already present: com.google.android.gms.internal.measurement.zzbk
Run Code Online (Sandbox Code Playgroud)
平台:Ubuntu 19:04 博览会:最新的react-native-firebase:5.2.5
gradle(项目)文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript …Run Code Online (Sandbox Code Playgroud)