与依赖项应用程序冲突的解决方案是什么:preDebugAndroidTestBuild



错误:任务":app:preDebugAndroidTestBuild"的执行失败。> 与项目":app"中的依赖项"com.android.support:support-annotations"冲突。应用 (26.1.0( 和测试应用 (27.1.1( 的已解决版本不同。有关详细信息,请参阅 https://d.android.com/r/tools/test-apk-dependency-conflicts.html。

对于 appcompat-v7:26.1.0。 测试应该是 测试:运行器:1.0.1 & 浓缩核心:3.0.1'

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

最新更新