How to debug when running Robolectric tests in Android Studio?

后端 未结 2 1500
旧时难觅i
旧时难觅i 2020-12-08 09:52

I need to run debug while my tests execution in Android Studio + Robolectric. Each time I try to run them by selecting debug for the test task from

相关标签:
2条回答
  • 2020-12-08 10:04

    I found the reason of the error. To make it run you need to uncheck the "Use in-process build" option in Compiler -> Gradle settings of Android Studio.

    enter image description here

    0 讨论(0)
  • 2020-12-08 10:22

    I was getting this error on linux, and the problem was that the another previous process has taken the port and hung. So, the solution is a netstat to locate the process blocking the port, then kill this process, or you can restart the machine.

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