I want to add some third-party libraries, but I always got the "Failed to resolve" error. I tried some suggestions I found here, like: Error:(23, 17) Failed to resolve: junit:junit:4.12 , Gradle failed to resolve library in Android Studio and Gradle in Android Studio: Failed to resolve third-party libraries but it didn't work! how can I solve the problem? thanks in advance 
- show log message here and gradle fileBajirao Shinde– Bajirao Shinde2016-04-19 10:40:55 +00:00Commented Apr 19, 2016 at 10:40
Add a comment |
3 Answers
libraries which you want to add are at maven or at any other repository, you need to add repository. so that gradle can download library from that repository.
let me know if you need more help.
3 Comments
TeachMePls
I added to Gradle repositories { mavenCentral() } But still get the error
Hammad Tariq
this library is not supported on android studio, use its jar file.
Hammad Tariq
also this library is deprecated, no more support, you may use google official API.