AndroidStudio工程报错Could not find common.jar (android.arch.core:common:1.0.0)

今天编译AS工程突然报错

* What went wrong:
A problem occurred configuring project ':ProjTank3_9'.
> 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

访问提示的url显示资源包已经找不到了

经过查找修改build.grade中的摄者可以解决此问题

allprojects {
  repositories {
      mavenLocal()
      maven { url 'https://maven.google.com' } // <-- add this!
      jcenter()
  }
}

参考链接:https://stackoverflow.com/questions/50563338/could-not-find-runtime-jar-android-arch-lifecycleruntime1-0-0

猜你喜欢

转载自blog.csdn.net/auccy/article/details/81202898