I try to run Kotlin instrumentation tests for android.
In my app/build.gradle:
android {
dataBinding {
enabled = true
In My case while using Java,I faced issue when I did below mistakes.
1)I had made ActivityTestRule as private.
All test cases should be public always.
2)I didn't add static for BeforeClass and AfterClass methods
Methods of @BeforeClass and @AfterClass should be static
Ex)@BeforeClass
public static void setUp(){
}