[英]Error:Failed to find: com.google.guava:guava:18.0.+
I added this dependency to the gradle file 我将此依赖项添加到gradle文件中
// This is used by the Google HTTP client library. //这是由Google HTTP客户端库使用的。
compile(group: 'com.google.guava', name: 'guava', version: '18.0.+')
I tried syncing the Gradle file but it keeps giving me this error 我尝试同步Gradle文件,但它一直给我这个错误
Error:Failed to find: com.google.guava:guava:18.0.+ 错误:无法找到:com.google.guava:guava:18.0。+
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/ 为了将来参考,您可以访问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 以下是您的Guava库的信息: http : //search.maven.org/#artifactdetails%7Ccom.google.guava%7Cguava%7C18.0%7Cbundle
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.