How to Resolve Dependency for ':App@Debug/Compileclasspath': Could Not Resolve

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download twitter.aar (com.twitter.sdk.android:twitter:3.1.0)

add jcenter() also inside your repositories and then sync again

repositories {
jcenter()
}

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download okhttp.jar (com.squareup.okhttp3:okhttp:4.3.1)

From this answer: you can add it like this

implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.8.0'

and to get dependencies from maven you need to add this to your repositories

repositories {
mavenCentral()
}


Related Topics



Leave a reply



Submit