出现问题后,将被依赖模块的compileSdkVersion和targetSdkVersion 改为跟依赖模块一致,同时修改appcompat对应的版本号,就可以了。
compileSdkVersion 27 defaultConfig { minSdkVersion 19 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }
dependencies { implementation 'com.android.support:appcompat-v7:27.1.1'

本文介绍了解决Android项目中模块依赖版本不一致的问题。通过调整被依赖模块的compileSdkVersion和targetSdkVersion与依赖模块保持一致,并更新appcompat版本号,可以有效解决版本冲突,确保项目稳定运行。
704

被折叠的 条评论
为什么被折叠?



