android - React Native - 运行 Android - 找不到 common.jar (android.arch.core:common:1.0.0)
问题描述
运行 react-native run-android 时,出现此错误:
* 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.
解决方案
我找到了这个解决方案并为我工作:maven { url "https://maven.google.com" }
在文件中添加第 18 行android/build.gradle
推荐阅读
- java - 猜数字android应用程序-输入空值后崩溃
- javascript - Flutter Web:使用 flutter build web 构建时缺少 main.dart.js 和 JavaScript 文件,但使用 flutter run 可以正常工作
- javascript - 如何编辑或调用这个 jQuery 函数来处理原生 JavaScript onmouseout?
- json - 在 Zapier 中处理列响应,其中一列为空白
- java - 即使行上没有任何内容为空,空指针异常
- python - 如何获取多个域的数据框中格式化的 ssl 信息?
- python - 如何在 / 处修复 Django TemplateDoesNotExist?
- c++ - 在 cmake 中使用 Pcap++ 库
- python - Flask 1.0 中的蓝图注册
- html - 单击只有 div 类可用的网站的复选框