Type Android Junit4 not present exception

后端 未结 6 501
陌清茗
陌清茗 2021-01-01 08:41

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

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-01 09:20

    Hopefully someone can give you a better answer as to why, but I had this exact same problem. I did the following:

    • Build > Clean Project,
    • Ran the app on the emulator

    This done, I was able to get back into a state where I could run the tests again.

提交回复
热议问题