首页 > 解决方案 > Firebase 无法在 React Native 版本 53 上运行

问题描述

出了什么问题:任务“:react-native-firebase:javaPreCompileDebug”执行失败。

无法解析配置“:react-native-firebase:debugCompileClasspath”的所有文件。无法解析 com.squareup.okhttp3:okhttp:{strictly 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:

无法解析 com.squareup.okio:okio:{strictly 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:

标签: firebasereact-native

解决方案


请确保您在 app.xml 中安装了兼容的 firebase 插件版本。这主要发生在同一应用程序中有不同的谷歌服务版本时。(请参阅此链接以了解版本兼容性)通过安装正确的版本我也遇到了类似的问题我解决了我的问题。


推荐阅读