简体   繁体   English

错误:无法找到:com.google.guava:guava:18.0。+

[英]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.

相关问题 错误:在项目':app'中与依赖项'com.google.guava:guava'发生冲突。 应用(18.0)和测试应用(16.0.1)的已解决版本不同 - Error:Conflict with dependency 'com.google.guava:guava' in project ':app'. Resolved versions for app (18.0) and test app (16.0.1) differ 使用最新的番石榴库实现 CacheBuilder 时出错(实现 'com.google.guava:guava:28.2-jre) - Error when implementing CacheBuilder using latest guava library (implementation 'com.google.guava:guava:28.2-jre) 无法解析 com.google.guava:guava:30.1-jre - Gradle 项目同步失败。 基本功能将无法正常工作 - 在 kotlin 项目中 - Could not resolve com.google.guava:guava:30.1-jre - Gradle project sync failed. Basic functionality will not work properly - in kotlin project java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.toImmutableSet() 即使使用“com.google.guava:guava:24.0-android” - java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.toImmutableSet() even with 'com.google.guava:guava:24.0-android' 测试 WorkManager 时无法解析 com.google.guava:listenablefuture:{strictly 1.0} - Could not resolve com.google.guava:listenablefuture:{strictly 1.0} when testing WorkManager 错误:com.android.builder.dexing.DexArchiveBuilderException:无法处理 guava-21.0.jar Android 3.1 Dev Channel - Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process guava-21.0.jar Android 3.1 Dev Channel 使用Google Guava和Android 1.6 - Using Google Guava with Android 1.6 Guava:java.lang.NoClassDefFoundError - com.google.common.collect.HashBiMap - Guava: java.lang.NoClassDefFoundError - com.google.common.collect.HashBiMap Android:依赖问题:Gradle support-v4:18.0.+ - Android: Dependency issue : Gradle support-v4:18.0.+ 我可以在SearchView中实现Google Guava Search吗 - Can I implement Google Guava Search in SearchView
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM