vendredi 9 février 2018

can't run recorded espresso test in androidstudio

I runned a "record espresso test" in android studio. I clicked my stuff and saved. The gui asked me to add missing dependencies in gradle for using specific libraries. Of course I allowed and I can see the new dependencies:

androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
}

but my testclass is red and I can't start it.

enter image description here

What is the trick to add the correct dependencies ? Can someone help ?

Aucun commentaire:

Enregistrer un commentaire