I have followed the tutorial given in
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