我收到以下错误,
Error:Conflict with dependency 'com.google.guava:guava' in project ':app'.
Resolved versions for app (18.0) and test app (16.0.1) differ
添加以下行后..
compile 'com.mobgen.halo.android:halo-plugin:2.0.0'
依赖 在build.gradle文件中
below is the snapshot of build.gradle file
我尝试在build.gradle文件中添加以下2种方法,但没有工作
1
configurations.all {
resolutionStrategy.force 'com.google.guava:guava:18.0'
}
2
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2') {
exclude group: 'com.google.guava:guava'
}
答案 0 :(得分:1)
2件事:
Guava
不是Espresso
的依赖项。这是testng
。
androidTestCompile ("org.testng:testng:6.9.6"){
exclude group: 'com.google.guava', module:'guava'
}