Android Studio import existing unit tests “Unable to find instrumentation info”

前端 未结 15 1824
故里飘歌
故里飘歌 2021-02-01 12:17

So I\'m trying our Android Studio and testing a project that worked in eclipse. I got everything compiling and the application will launch just fine, but I can\'t get my unit te

15条回答
  •  既然无缘
    2021-02-01 12:55

    This only works in AndroidStudio Version < 2.3

    In my case the wrong instrumentation runner was selected.

    I fixed this by specifying the instrumentation runner in the Run/Debug Configuration of the test (see below). There you can select a runner from the list. 1]

    You find the Run/Debug Configurations: Run -> Edit Configurations ...

提交回复
热议问题