关于 Could not find support-v4.jar (com.android.support:support-v4:26.1.0)

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_locvargoDebugApk'.
   > A problem occurred configuring project ':baselib'.
      > Could not find support-v4.jar (com.android.support:support-v4:26.1.0).
        Searched in the following locations:
            https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar

这很尴尬了,找了半天找不到问题打开

https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar也返回404

百度了下,发现,从api 26开始,support libraries 需要从google的maven仓库下载,所以需要在project的build.gradle中allprojects 添加如下配置即可

maven { url "https://maven.google.com" }

经验证,确实可行,
 

你可能感兴趣的:(关于 Could not find support-v4.jar (com.android.support:support-v4:26.1.0))