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

前端 未结 15 1853
故里飘歌
故里飘歌 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 13:08

    I've got same problem as @Iuliia Ashomok and tried everything on the internet.

    Still no luck.

    After 2 days investigation, I found that the problem is created by the mobile phone. .V.

    I originally use Xiaomi Mi4i as testing device(rooted) and tests could not be run. Of course, I got the error below.

    Test running failed: Unable to find instrumentation info for: ComponentInfo{/android.test.InstrumentationTestRunner}
    

    However, when I use Sony Xperia Z3(No root), everything works well.

提交回复
热议问题