android - Conflict with dependency app的解决方法是什么: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。测试应该是 test:runner:1.0.1 & espresso-core: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'
}
推荐阅读
- java - 在 NetBeans 的同一个 java 应用程序项目中具有多个具有 Main() 函数的 jar 文件
- swift - swift如何将日期组件转换为双精度以获得上传速度
- reactjs - 另一个组件中的状态更改
- python - 在终端中导入 Python 库
- html - 使用html从外部源更改按钮的颜色?
- anychart - Anychart 缩放非地图图表类型
- javascript - 使用 React JavaScript 的 Spring-Boot
- android - onActivityResult 返回空数据
- python - Python绘图字典
- python - 一次访问多个索引行时有效地迭代 pandas.DataFrame