尝试了在this职位,但我仍然得到错误:
Tried out the suggestions on this post, but I still get the error:
!!! JUnit version 3.8 or later expected:
java.lang.RuntimeException: Stub!
at junit.runner.BaseTestRunner.<init>(BaseTestRunner.java:5)
at junit.textui.TestRunner.<init>(TestRunner.java:54)
at junit.textui.TestRunner.<init>(TestRunner.java:48)
at junit.textui.TestRunner.<init>(TestRunner.java:41)
Process finished with exit code -3
不知道从这里做。试图重新组织了JUnit依赖的顺序。没有运气,任何人得到这个问题?
Not sure what to do from here. Tried reorganizing the order of the Junit dependency. No luck, anyone else get this issue?
Android的工作室V. 1.2.1.1
Android Studio V. 1.2.1.1
解决这个问题。我运行JUnit测试在一个标准的JUnit测试机器人工作室
。我通过重新配置为固定这一问题的 Android的测试
。
Solved the issue. I was running the JUnit tests as a standard "JUnit test" in Android Studio
. I fixed the issue by resetting the configuration as a Android Test
.