提示Android(安卓)dependency 'com.android.support:appcompat-v7' has different version
16lz
2021-12-04
报错提示:
Android dependency ‘com.android.support:appcompat-v7’ has different version for the compile (25.3.1) and runtime (28.0.0) classpath. You should manually set the same version via DependencyResolution
处理方式:
android {...}//在app的build.gradle中添加以下代码project.configurations.all{ resolutionStrategy.eachDependency{details-> if(details.requested.group=='com.android.support' && !details.requested.name.contains('multidex')){ details.useVersion"28.0.0" } }}dependencies {...}
更多相关文章
- Android(安卓)全屏
- android百度地图标记点代码
- build WebRTC for android
- android的service中在后台弹出提示框
- 垂直跑马灯
- Android菜单实例
- Android使用代码模拟HOME键的功能
- Android(安卓)Gradle使用详解
- android九宫格实现