I'm fairly new to android studio and I'm trying to do some JUnit tests on an app that I'm making. But I keep getting this error:
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.
How can I fix this?