So i added two new dependencies to use PowerMock in addition to other previous dependencies. Now I'm getting an error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:test'.
> Test filtering is not supported for given version of JUnit. Please upgrade JUnit version to at least 4.6.
And here are my Gradle dependencies:
I added the 2 PowerMock dependencies. And $junitVersion is 4.11.
Before the dependencies the tests were fine. I can run gradle tests on command line aswell and everything works fine.