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