You need to check “run” configuration.
If you are going to run tests from androidTest folder, you should choose configuration under Android Instrumented Test, and not the junit.
Run(Top tool window) / Edit configurations…
More Related Contents:
- How to add a jar in External Libraries in Android Studio?
- How to include *.so library in Android Studio?
- Error type 3 Error: Activity class {} does not exist
- Android studio, gradle and NDK
- How to disable gradle ‘offline mode’ in android studio? [duplicate]
- Change project name on Android Studio
- “Failed to install the following Android SDK packages as some licences have not been accepted” error
- Why are there two build.gradle files in an Android Studio project?
- Android CI build: Could not find aapt2-proto.jar
- Error: could not find com.google.gms:google-services:4.2.0
- unable to execute adb in Ubuntu. Downloaded file is meant for x86-64 while I have i686 [duplicate]
- Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to
- Could not find com.android.tools.lint:lint-gradle Android Studio 3
- Android emulator screen fills up only some fraction part of actual android emulator screen
- Getting context in AndroidTestCase or InstrumentationTestCase in Android Studio’s Unit Test feature
- “Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16”
- Cannot resolve symbol ‘Theme’ in styles.xml (Android Studio)
- How to import set of icons into Android Studio project
- No resource identifier found for attribute ‘…’ in package ‘com.app….’
- OpenCv with Android studio 1.3+ using new gradle – undefined reference
- Add Maven repository to build.gradle
- Gradle error upgrading to Android Studio 3.0 Beta 1
- Android Studio: Re-download dependencies and sync project
- Android Layout editor ConstraintLayout
- Android SDK location should not contain whitespace, as this cause problems with NDK tools
- Cannot resolve symbol GooglePlayServicesClient on new Android Studio Project
- How can I set SignalR in Android Studio to ignore SSL issues for delvelopement
- How to get code coverage using Android Studio?
- “The following SDK components were not installed: sys-img-x86-addon-google_apis-google-22 and addon-google_apis-google-22”
- gradle, Could not expand ZIP appcompat-v7:19.0.1