How do I use the latest support library (Getting failed to resolve error with support library 26.0.2 and compileSDKVersion 26)? [duplicate]

痴心易碎 提交于 2019-11-29 06:52:04

You should add this in your App Level build.gradle section.

Finally

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

Then Clean-Rebuild and Run .

FYI

If you're using a version of Gradle higher than 4.1, you must use :

allprojects {
      repositories {  
        google()

    }
}

Go to File->Settings->Android SDK->SDK Tools. Then in Support Repository dropdown, check the android support repository checkbox and update it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!