Android Studio SDK JUnit 测试不工作
Android Studio SDK JUnit tests not working
我是 android studio 的新手,我正在尝试对我正在制作的应用程序进行一些 JUnit 测试。但我不断收到此错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:testDebug'.
> Test filtering is not supported for given version of JUnit. Please upgrade JUnit version to at least 4.6.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 11.791 secs
Test filtering is not supported for given version of JUnit. Please upgrade JUnit version to at least 4.6.
我该如何解决这个问题?
按照以下步骤-
- 转到菜单 运行-> 运行 配置
- 并添加测试 运行ner 按照下面的截图
- 运行 与 "MyTest" 亚军
我是 android studio 的新手,我正在尝试对我正在制作的应用程序进行一些 JUnit 测试。但我不断收到此错误:
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:testDebug'. > Test filtering is not supported for given version of JUnit. Please upgrade JUnit version to at least 4.6. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 11.791 secs Test filtering is not supported for given version of JUnit. Please upgrade JUnit version to at least 4.6.
我该如何解决这个问题?
按照以下步骤-
- 转到菜单 运行-> 运行 配置
- 并添加测试 运行ner 按照下面的截图
- 运行 与 "MyTest" 亚军