You need to add google repository like below in build.gradle file for your application to make it work:-
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
Also check below url for more info:-
https://developer.android.com/topic/libraries/support-library/setup.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.