firebase - 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:
解决方案
请确保您在 app.xml 中安装了兼容的 firebase 插件版本。这主要发生在同一应用程序中有不同的谷歌服务版本时。(请参阅此链接以了解版本兼容性)通过安装正确的版本我也遇到了类似的问题我解决了我的问题。
推荐阅读
- linux - 用户线程和内核线程如何与 linux 堆栈一起工作?
- react-native - 将本机设置动画值反应到动画
- php - 每次单击按钮时生成新的 id
- java - Using SharedPreferences with for loop
- c++ - C ++ 3D数组中的Valgrind错误
- bash - 使用 fmt 后执行变量替换
- javascript - How to add new column for each array with js
- angular - 创建嵌套组件 Angular 6
- ruby-on-rails - Rails 在开发中不通过 Mandrillapp 发送邮件(提供节点名或服务名)
- javascript - How can I get the same id (slides) as array through javascript without using **jquery**, **querySelectorAll()** Method or **querySelector()** Method?