jeudi 1 décembre 2016

Bound mismatch in espresso tests' ActivityTestRule

When I try to run espresso tests in Android Studio 2.2.2 I'm getting the following error:

Bound mismatch: The type MainActivity is not a valid substitute for the bounded parameter of the type ActivityTestRule

MainActivity is an extension of Activity.

@Rule
public ActivityTestRule<MainActivity> mainActivityTestRule
        = new ActivityTestRule<>(MainActivity.class);

What can be causing it?

Aucun commentaire:

Enregistrer un commentaire