Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve junit:junit:4.12.
- Get link
- X
- Other Apps
Problem Solved, today i fall in problem Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve junit:junit:4.12. and finally i searched and learned that starting from version 26 of support libraries make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint.
after adding maven {url "https://maven.google.com"} in build.gradle project just synced and finally it works for me.
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
after adding maven {url "https://maven.google.com"} in build.gradle project just synced and finally it works for me.