React Native-运行Android-找不到common.jar(android.arch.core:common:1.0.0) [英] React Native - Run Android - Could not find common.jar (android.arch.core:common:1.0.0)

查看:65
本文介绍了React Native-运行Android-找不到common.jar(android.arch.core:common:1.0.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当运行react-native run-android时,出现此错误:

When run react-native run-android, I got this error :

* 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 find common.jar (android.arch.core:common:1.0.0).
        Searched in the following locations:
            https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

推荐答案

我找到了解决方案,并为我工作: 在文件android/build.gradle

I found this solution and works for me: add maven { url "https://maven.google.com" } in line 18 in file android/build.gradle

这篇关于React Native-运行Android-找不到common.jar(android.arch.core:common:1.0.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆