Error:Execution failed for task ':app:preDebugAndroidTestBuild' , when tried to run java program in android studio

后端 未结 14 1266
渐次进展
渐次进展 2021-02-13 03:03

Getting the below error at the time of running java program in android studio.

Error:Execution failed for task \':app:preDebugAndroidTestBuild\'.

<
14条回答
  •  你的背包
    2021-02-13 03:41

    Add This Code to the bottom of build.gradle at app level. It will work...

    configurations.all {
        resolutionStrategy.eachDependency{
            DependencyResolveDetails details ->
                def requested=details.requested
                if(requested.group=="com.android.support"){
                if(!requested.name.startsWith("multidex")){
                    details.useVersion("26.0.1")
                }
            }
        }
    }
    

提交回复
热议问题