I am getting this gradle error when i build my app:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp:3.12.0.
here in my app.gradle dependencies code here is the image screenshot of the app.gradle file
buildgradle file
here are the gradle files codes
you need to add repository mavenCentral()
into allprojects
's repositories
.
and please, don't post IDE screenshots, because it's painful to work with such input.
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.