Getting the below error at the time of running java program in android studio.
Error:Execution failed for task \':app:preDebugAndroidTestBuild\'.
Use implementation 'com.android.support:appcompat-v7:27.1.1' instead of implementation 'com.android.support:appcompat-v7:26.1.0' and change compileSdkVersion 26 to 27
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:appcompat-v7:26.1.0'