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

前端之家收集整理的这篇文章主要介绍了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相关文章