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

后端 未结 14 1552
渐次进展
渐次进展 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:44

    Add these lines within your app dependencies braces,

    android{
        configurations.all {
            resolutionStrategy.force 'com.android.support:support-annotations:27.1.1'
        }
    }
    

    Latest is 27.1.1 upto this date.

提交回复
热议问题