Warning:Conflict with dependency

2018-05-29  本文已影响0人  tgcity

在Android Studio  编译的时候,报错:

Warning:Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.

解决办法:在 build.gradle 添加

configurations.all { resolutionStrategy.force'com.android.support:support-annotations:27.1.1'}

上一篇下一篇

猜你喜欢

热点阅读