出了什么问题: 任务':react-native-firebase:javaPreCompileDebug'的执行失败。
无法解析配置':react-native-firebase:debugCompileClasspath'的所有文件。 无法解析com.squareup.okhttp3:okhttp:{严格地是3.6.0}。 要求: 项目:react-native-firebase 找不到满足版本限制的'com.squareup.okhttp3:okhttp'版本: 依赖路径'fps:react-native-firebase:unspecified'->'com.facebook.react:react-native:0.53.3'->'com.squareup.okhttp3:okhttp:3.6.0' 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 依赖路径'fps:react-native-firebase:unspecified'->'com.google.firebase:firebase-perf:17.0.2'->'com.squareup.okhttp3:okhttp:3.0.0' 依赖路径'fps:react-native-firebase:unspecified'->'com.google.firebase:firebase-functions:17.0.0'->'com.squareup.okhttp3:okhttp:3.12.1' 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 依赖路径'fps:react-native-firebase:unspecified'->'com.facebook.react:react-native:0.53.3'->'com.facebook.fresco:imagepipeline-okhttp3:1.3.0'- ->'com.squareup.okhttp3:okhttp:3.6.0' 依赖路径'fps:react-native-firebase:unspecified'->'com.facebook.react:react-native:0.53.3'->'com.squareup.okhttp3:okhttp-urlconnection:3.6.0'- ->'com.squareup.okhttp3:okhttp:3.6.0' 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okhttp3:okhttp:{strictly 3.6.0}',原因如下:debugRuntimeClasspath使用版本3.6.0
无法解析com.squareup.okio:okio:{严格为1.13.0}。 要求: 项目:react-native-firebase 找不到满足版本限制的'com.squareup.okio:okio'版本: 依赖路径'fps:react-native-firebase:unspecified'->'com.facebook.react:react-native:0.53.3'->'com.squareup.okio:okio:1.13.0' 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 依赖路径'fps:react-native-firebase:unspecified'->'com.facebook.react:react-native:0.53.3'->'com.squareup.okhttp3:okhttp:3.12.1'-> 'com.squareup.okio:okio:1.15.0' 依赖路径'fps:react-native-firebase:unspecified'->'com.google.firebase:firebase-firestore:19.0.2'->'com.squareup.okhttp:okhttp:2.7.5'-> 'com.squareup.okio:okio:1.6.0' 依赖路径'fps:react-native-firebase:unspecified'->'com.google.firebase:firebase-firestore:19.0.2'->'io.grpc:grpc-okhttp:1.21.0'-> 'com.squareup.okio:okio:1.13.0' 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0 约束路径'fps:react-native-firebase:unspecified'->'com.squareup.okio:okio:{strictly 1.13.0}',原因如下:debugRuntimeClasspath使用版本1.13.0
答案 0 :(得分:0)
将com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
放在build.grandle
的结尾
答案 1 :(得分:0)
请确保您在应用中安装了兼容的Firebase插件版本。大多数情况是在同一应用中有不同的Google服务版本可用时发生的。 (有关版本兼容性,请参考此link)我也遇到了类似的问题,即安装了正确的版本来解决问题。