2020-09-26

Android Studio Complaining About Imports in "androidTest"

 If you are trying to build an androidTest with Android Studio and it can not find the classes being imported. (For example Android Studio can not find AndroidJUnit4, InstrumentationRegistry, etc.)


Like this, for example:

Change your Build Variant to debug.

This build variant "Release" causes the error from above.

This build variant "debug" solved the problem for me:


No comments :

Post a Comment