【问题标题】:What is the solution for Conflict with dependency app:preDebugAndroidTestBuildConflict with dependency app的解决方法是什么:preDebugAndroidTestBuild
【发布时间】:2023-03-29 03:14:01
【问题描述】:

错误:任务 ':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

【问题讨论】:

    标签: android annotations


    【解决方案1】:

    适用于 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'
    
        }
    

    【讨论】:

      猜你喜欢
      • 2020-12-27
      • 1970-01-01
      • 2018-04-02
      • 2021-10-22
      • 2012-10-10
      • 2010-10-10
      • 2010-11-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多