React-native依赖性错误(com.atlassian.mobile.video okhttp-ws-compat)

我正在开发一个React-native应用程序,突然间我开始收到以下错误
  • What went wrong:
    A problem occurred configuring project ‘:app’.
    Could not resolve all dependencies for configuration ‘:app:_debugApk’.
    A problem occurred configuring project ‘:react-native-config’.
    Could not resolve all dependencies for configuration ‘:react-native-config:_debugPublishcopy’.
    Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.
    required by:
    cabm8:react-native-config:unspecified > com.facebook.react:react-native:0.42.3-atlassian-1

我摆脱了模块react-native-config但仍面临类似的错误

  • What went wrong:
    A problem occurred configuring project ‘:app’.
    Could not resolve all dependencies for configuration ‘:app:_debugApk’.
    A problem occurred configuring project ‘:react-native-maps’.
    Could not resolve all dependencies for configuration ‘:react-native-maps:_debugPublishcopy’.
    Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.
    required by:
    cabm8:react-native-maps:unspecified > com.facebook.react:react-native:0.42.3-atlassian-1

这个问题似乎与com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1有关。

我已经尝试重新安装node_modules,删除文件夹android和ios然后使用git恢复它们。我还能尝试什么?

com.atlassian.mobile.video现在不能在maven上使用。要运行项目,您需要更新它

将您的react和react-native版本更新到package.json文件

"react": "16.0.0-alpha.3","react-native": "0.43.1",

然后删除node_modules并再次执行npm安装

请让我知道这对你有没有用

相关文章

一、前言 在组件方面react和Vue一样的,核心思想玩的就是组件...
前言: 前段时间学习完react后,刚好就接到公司一个react项目...
前言: 最近收到组长通知我们项目组后面新开的项目准备统一技...
react 中的高阶组件主要是对于 hooks 之前的类组件来说的,如...
我们上一节了解了组件的更新机制,但是只是停留在表层上,例...
我们上一节了解了 react 的虚拟 dom 的格式,如何把虚拟 dom...