Error:Execution failed for task ':app:prepareDebugAndroidTestDependencies'.

Studio报错

Error:Execution failed for task ':app:prepareDebugAndroidTestDependencies'.
> Dependency Error. See console for details.

解决的办法:
在app的gradle文件中添加以下代码

configurations.all {
        resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.0'
    }
相关文章