React Native android 错误 com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.
来源:互联网 发布:人工智能 时时彩 编辑:程序博客网 时间:2024/05/21 10:30
React Native 版本:0.38.0
错误信息:
* 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-device-info'. > Could not resolve all dependencies for configuration ':react-native-device-info:_debugPublishCopy'. > Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1. Required by: AiragAppFarmer:react-native-device-info:unspecified > com.facebook.react:react-native:0.42.3-atlassian-1* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
解决:
在 android/build.gradle 下 的 allprojects 添加
configurations.all { resolutionStrategy { eachDependency { DependencyResolveDetails details -> if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') { details.useVersion "0.38.0" //你当前react native 版本(0.38.0测试可行) } } } }
如:
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.2' }}allprojects { configurations.all { resolutionStrategy { eachDependency { DependencyResolveDetails details -> if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') { details.useVersion "0.38.0" //你当前react native 版本(0.38.0测试可行) } } } } 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" } }}
参考:
https://github.com/facebook/react-native/issues/14223#issuecomment-304509104
阅读全文
0 0
- React Native android 错误 com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.
- react-native-video error
- react native video
- React Native Android错误总结
- 在真机上执行react-native run-android出现com.android.ddmlib.InstallException: Failed to finalize session错误
- 在真机上执行react-native run-android出现com.android.ddmlib.InstallException: Failed to finalize session错误
- 在真机上执行react-native run-android出现com.android.ddmlib.InstallException: Failed to finalize session错误
- react-native播放视频组件 react-native-video的用法
- react-native 错误记录
- React-Native常见错误
- React-Native 错误集锦
- React Native错误记录
- RN开源播放器Video组件(react-native-video)
- Android使用react-native-video 播放视频一直重复播放的解决方法
- React Native开源播放器Video组件(react-native-video)
- react-native 结合ant-Design- mobile
- React native与phoneGap jquery mobile
- React Native 之 com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException
- 拉普拉斯矩阵到谱聚类
- JNI 实战全面解析
- 用openrowset函数操作远程数据库
- Unity中实现UI序列帧动画
- MFC学习笔记——GDI绘图
- React Native android 错误 com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.
- Lua学习笔记(2)-语句、函数
- java web 项目启动的加载顺序
- Android Studio中使用jni进行opencv开发的环境配置
- UIBezierPath 了解
- [第十章]Python Request库的使用
- 数据库质疑或只有MDF文件资料
- 玲珑杯河南专场E
- css常见的水平垂直居中