android - react native : Could not find support-vector-drawable. aar

标签 android react-native

<分区>

我运行 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

最佳答案

下面为我工作, 尝试将 google() 作为第一个 repo,如下所示。 对于现有的 Android Studio 项目,不要将它放在 jcenter()mavenCentral() 下。 只需将 google()allprojects 中的底部移动到顶部 > repositories 中的 build.gradle 模块。

最初,here is the answer

关于android - react native : Could not find support-vector-drawable. aar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52961804/

相关文章:

design-patterns - 在reactjs中组件组合中使用props的惯用方法是什么

react-native - 为什么 realm 对象在 react-native 中未定义

android - 开发 React Native Apps 时如何在 Android 模拟器窗口中重新加载?

reactjs - 执行 createUserWithEmailAndPassword 后,React Native 使用 sendEmailVerification 检查用户电子邮件

java - Android - 应用程序仅在第一次启动时崩溃,但第二次运行

android - 为什么我的 ListView 不显示我的项目?

android - 为什么这个 Android Intent 找不到电子邮件应用程序?

android - AWS Mobile SDK是否支持基于cordova的混合应用程序?

android - 使用 Robolectric 测试 HostApduService

Java float 数学错误?