Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict

Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict

 

使用环境:

           新创建项目时,包的错。而且,我什么都没做……太君,冤枉!

使用方法:

          项目APP的build.gradle文件dependencies下添加:

    androidTestCompile('com.android.support:support-annotations:26.1.0') {
        force = true
    }

          运行,即可……

          嫑问为什么,你猜我知道这是为什么吗?

          本文转载自: https://blog.****.net/fighting_2017/article/details/80244982