2

I use gradle with my android project. The sdk version is 24 but with the 23 i have the same problem. I put

testCompile 'org.mockito:mockito-core:1.10.19'

jcenter()

And the imports related to are not resolved. But AndroidJUnit4 is resolved

[to see the problem click here][1] (with or without static it doesn't change)

my gradle files : gradle1 gradle2

Thank you

gaetan navez
  • 21
  • 1
  • 3

1 Answers1

0

use Mockito 2.x

testImplementation 'org.mockito:mockito-core:2.18.0'

Kusan
  • 260
  • 1
  • 11