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

在app下的build.gradle文件中的dependences {}中添加如下代码:

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

 

 

 

添加后dependences中结构类似

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

 

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

上一篇:实现简单的信息无缝滚动(移动端)


下一篇:Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFa