当前位置:   article > 正文

react native Could not determine the dependencies of task_rn could not determine the dependencies of task ':

rn could not determine the dependencies of task ':app:mergedebugassets

Could not determine the dependencies of task ':react-native-image-crop-picker:compileDebugAidl' ...........

安装react-native-image-crop-picker 插件的时候Could not find com.github.yalantis:ucrop:2.2.1-native,因为缺少maven源,
解决方法:/android/build.gradle 下, 有的时候因为添加了阿里云,又设置了代理,还会出现 read time out,就需要将阿里云镜像源去掉了

  1. allprojects {
  2. repositories {
  3. mavenLocal()
  4. google()
  5. jcenter()
  6. maven {
  7. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  8. url "$rootDir/../node_modules/react-native/android"
  9. }
  10. maven{
  11. url "https://jitpack.io"
  12. }
  13. maven{
  14. url 'https://maven.google.com/'
  15. name 'Google'
  16. }
  17. }
  18. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/310995
推荐阅读
相关标签
  

闽ICP备14008679号