Getting the below error at the time of running java program in android studio.
Error:Execution failed for task \':app:preDebugAndroidTestBuild\'.
<
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