Getting the below error at the time of running java program in android studio.
Error:Execution failed for task \':app:preDebugAndroidTestBuild\'.
Add this to your app gradle file
configurations.all { resolutionStrategy { force 'com.android.support:support-annotations:26.1.0' } }