mercredi 26 août 2015

Expresso Test unable to import AndroidJUnit4 and Expresso Test

I have followed the tutorial given in

http://ift.tt/1MP7vCJ

my code is

/* JUnit4 & Espresso */
androidTestCompile 'com.android.support.test:runner:0.3'

// Set this dependency to use JUnit 4 rules
androidTestCompile 'com.android.support.test:rules:0.3'

// Set this dependency to build and run Espresso tests
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'

androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'

But I still cant import AndroidJUnit4 class and Expresso Test.

import static android.support.test.espresso.Espresso.onView;

But after until android.support.test.

the expresso library is in red colors

and also the AndroidJUnit4 unable to run.

Anyone know what issue?Thanks a lot

Aucun commentaire:

Enregistrer un commentaire