How can I test activity based on ActionBarActivity (from android.support.v7.app) using AndroidUnitTestCase<T> class?
问题 Sorry for my English. I use Android Studio. To learn how to create tests in Android Studio I used this SO post All tests are in the same Android App Module where the source. The support libraries for v4 and v7 are connected ( v7 is connected by default). The module's build.gradle contains: dependencies { compile 'com.android.support:appcompat-v7:+' compile "com.android.support:support-v4:19.0.+" } and support-v4-19.0.0.jar is shown as external library (in the project tree). All was right