【发布时间】:2019-03-28 10:40:08
【问题描述】:
我运行 react-native 0.57.1 应用程序,然后我得到以下几行。
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
/> Could not find support-vector-drawable.aar (com.android.support:support-vector-drawable:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-vector-drawable/27.1.1/support-vector-drawable-27.1.1.aar
/> Could not find livedata-core.aar (android.arch.lifecycle:livedata-core:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/livedata-core/1.1.0/livedata-core-1.1.0.aar
/> Could not find viewmodel.aar (android.arch.lifecycle:viewmodel:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/viewmodel/1.1.0/viewmodel-1.1.0.aar
/> Could not find runtime.aar (android.arch.core:runtime:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/runtime/1.1.0/runtime-1.1.0.aar
【问题讨论】:
-
发布您的
build.gradle -
我的 react native 项目也有同样的问题。我正在尝试在 Ubuntu 中运行该项目,该项目在 Windows 中运行良好
-
在 android studio 上打开该项目并同步并尝试运行
-
所有 com.android.support 库必须使用完全相同的版本。检查您的 android Gradle 文件中的版本。这个stackoverflow.com/questions/42374151/… 将帮助你了解它。
标签: android react-native