Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Failed to find: com.google.guava:guava:18.0.+

I added this dependency to the gradle file

// This is used by the Google HTTP client library.

compile(group: 'com.google.guava', name: 'guava', version: '18.0.+')

I tried syncing the Gradle file but it keeps giving me this error

Error:Failed to find: com.google.guava:guava:18.0.+

like image 988
Isaac Avatar asked Mar 27 '15 09:03

Isaac


1 Answers

It is because guava does not have a 'patch' version, only 'major' and 'minor' versions.

Try this instead:

compile(group: 'com.google.guava', name: 'guava', version: '18.0')

For future reference, you can search for your library's available versions by going to Maven Central: http://search.maven.org/

Here is the info for your Guava library: http://search.maven.org/#artifactdetails%7Ccom.google.guava%7Cguava%7C18.0%7Cbundle

like image 139
Kio Krofovitch Avatar answered Nov 18 '22 13:11

Kio Krofovitch