微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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安装

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

原文地址:https://www.jb51.cc/react/301360.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐