Type Android Junit4 not present exception

This is caused by Android Studio trying to execute an instrumentation test as a JUnit test.

I had to go to ‘Edit Configurations…’ and delete the configuration from Android JUnit group and manually add to the ‘Android Instrumented Tests’ group. After this I had no problem executing the tests.

In Android Studio, click Run > Edit Configurations.

https://developer.android.com/studio/run/rundebugconfig

Leave a Comment