react-native Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.错误

在build.gradle (不是 APP bulid.gradle)里面配置 这貌似是官方出现的的问题 据说在0.42.3版本进行了修复

allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
//修复了 > Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.错误
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react- native') {
def file = new File("$rootDir/../node_modules/react-native/package.json")
def version = new groovy.json.JsonSlurper().parseText(file.text).version
details.useVersion version
}
}
}
}
}
}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容