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

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

    Since none of these answers helped me, I wanted to share my solution for anyone who is as desperate as I was. :)

    Because of the testing libraries that I was using, I needed to enable multidex support by adding multiDexEnabled true to my Gradle build. I'm not sure I had multidex support fully implemented to begin with (the proper way of doing it has changed since I last implemented it) but ultimately, I didn't end up needing it and removing that line from my build fixed the error. My team at work has had a few testing issues related to enabling multidex support… in typical Android style.

提交回复
热议问题