Android studio can't resolve org.junit import -


i'm growing pretty desperate. follow jetbrain guide install , use junit in android app of mine.

so dependency imported in gradle app file:

dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.google.android.gms:play-services:7+' compile 'com.android.support:support-v4:22.+' testcompile 'org.robolectric:robolectric:2.4' testcompile 'org.mockito:mockito-core:1.+' testcompile 'junit:junit:4.12'} 

i've switched build variants on unit tests.

but android studio can't resolve typical annotation symbols of junit neither import packages "org.junit". i've try find here , on google, try invalidate cache , restart. i've try use junitgenerator plugin, , write test in src/test/java/ self...

to me seems gradle not import junit jar @ all. ideas how solve issue? issue?

thanks.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -