gradle looks like:
apply plugin: \'com.android.application\'
android {
compileSdkVersion 25
buildToolsVersion \"25.0.2\"
defaultConfig {
solution:- you have to change the test folder from test to androidTest and edit the test configuration.(or move the test file from test to androidTest edit the test configuration)
I found the solution in this video: https://youtu.be/TGU0B4qRlHY?t=9m36s
and here:- https://stackoverflow.com/a/30172064/5723125