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

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

    Hello guys I had the same problem for solving this problem u need to change you appcompat in your app bulid gradle to

    implementation 'com.android.support:appcompat-v7:27.1.1'

    then it should ask you to instal it if u have'nt installed if still errore didnt solved change your sdkversions it will help alot because if u change the appcompact to 27.1.1 u need to change your sdkversion to 27 as well i suggest all of u to update your android studio and the sdk to the lastest

提交回复
热议问题