Android的工作室 - 使用JUnit 4.12“! JUnit版本3.8或更高期望:“ [英] Android Studio - with Junit 4.12 “!!! JUnit version 3.8 or later expected:”
本文介绍了Android的工作室 - 使用JUnit 4.12“! JUnit版本3.8或更高期望:“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试了在<一的建议href=\"http://stackoverflow.com/questions/2422378/intellij-idea-with-junit-4-7-junit-version-3-8-or-later-expected\">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
.
这篇关于Android的工作室 - 使用JUnit 4.12“! JUnit版本3.8或更高期望:“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文