Cannot resolve symbol ‘AndroidJUnit4’ November 16, 2022 by Tarik Make sure your app in debug build variant. Go to Build > Select Build Variant… and the following should show up: