I have an Android project that I am trying to run Instrumentation tests for using AndroidStudio, but when I try to run the whole class file for the tests, I get the exceptio
Hopefully someone can give you a better answer as to why, but I had this exact same problem. I did the following:
This done, I was able to get back into a state where I could run the tests again.