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

前端 未结 15 1830
故里飘歌
故里飘歌 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:07

    For me the problem was having this dependency:

    debugCompile 'com.android.support.test:rules:0.2'
    

    After I removed it my tests were found and run again.

    Note that I didn't get the "Unable to find instrumentation" message but a "No tests found" message.

提交回复
热议问题