今天在做Android的滑动菜单时,引入了两个内容:
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
testCompile 'junit:junit:4.12'
<!--引入-->
compile 'com.android.support:design:24.2.1'
compile 'de.hdodenhof.circleimageview:2.1.0'
直接报错:
Error:Failed to resolve: de.hdodenhof.circleimageview:2.1.0: This support library should not use a different version (24) than the compileSdkVersion (25) less...
看了网上很多帖子说上下版本号得一致,于是将
compile 'com.android.support:design:24.2.1'
版本改为了25.3.1,错误消失,
但compile 'de.hdodenhof.circleimageview:2.1.0'
继续报错,后来将版本号改为
compile 'de.hdodenhof:circleimageview:3+'
错误消失
应该就是版本不匹配的问题。