How to fix this problem in gradle ? I'm using androidx and I've checked this link "Error:Failed to resolve: support-vector-drawable" before, But I couldn't find a suitable answer according to my question.
Asked
Active
Viewed 416 times
2
-
Show some code where you are having issue. – Umair Iqbal Jan 14 '20 at 07:46
-
Does this answer your question? [Error:Failed to resolve: support-vector-drawable](https://stackoverflow.com/questions/50912739/errorfailed-to-resolve-support-vector-drawable) – Umair Iqbal Jan 14 '20 at 08:48
1 Answers
0
solved : This solution is worked for me
just replace 2 lines of code in this answer
"https://stackoverflow.com/a/50912781"
like this :
in build.gradle(app)
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
in build.gradle(project)
allprojects {
repositories {
maven { url 'https://maven.google.com' } // (now) make it first element
google()
jcenter()
// ... maven { url 'https://maven.google.com' } (was here before)
}
}

MRShafiee
- 23
- 7