I use the following two dependencies:
compile 'com.google.guava:guava:14.0.1'
compile 'com.google.guava:guava-gwt:14.0.1'
Both must be the same version to work correctly. Since my other dependencies use a higher version, Gradle uses different versions for each dependency.
I found this by running gradle dependencies
:
compile - Compile classpath for source set 'main'.
+--- com.google.guava:guava:14.0.1 -> 17.0
+--- com.google.guava:guava-gwt:14.0.1
| +--- com.google.code.findbugs:jsr305:1.3.9
| --- com.google.guava:guava:14.0.1 -> 17.0
How can I force Gradle to set the same version for these two dependencies?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…