gradle looks like:
apply plugin: \'com.android.application\' android { compileSdkVersion 25 buildToolsVersion \"25.0.2\" defaultConfig {
In my case the problem was solved by putting the below line:
@RunWith(AndroidJUnit4ClassRunner.class)