“No tests found” for instrumentation tests for Lollipop and above

前端 未结 1 943
傲寒
傲寒 2021-02-19 17:48

My instrumentation based (espresso) tests don\'t run on Lollipop+ devices and emulators. They correctly run on any other platform. I have the same symptoms as the guy in this th

1条回答
  •  不知归路
    2021-02-19 18:08

    Finally it started working. I followed this answer: https://groups.google.com/d/msg/adt-dev/QW5SuzQizNk/mWdaEuuCCQAJ which links to: https://github.com/google/dagger/issues/271

    Basically this was the problem:

    I incorrectly used compile 'com.google.dagger:dagger-compiler:2.0.2'

    instead of correct apt 'com.google.dagger:dagger-compiler:2.0.2'

    0 讨论(0)
提交回复
热议问题