Even the simplest application from a single line Hello world (just created a project in Android Studio 3.2.1, did not add a single line of code) when translating Build Variants from the debug release ExampleInstrumentedTest immediately gives an error, starting from the level:

import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; 

screenshot: ExampleInstrumentedTest Error

You come back to debug - again everything is fine: ExampleInstrumentedTest without error

The build.gradle (Module: App) lines

 testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 

are present build.gradle Implementations

How could this be fixed?

  • 3
    Welcome to ruStackOverflow! All texts (errors and code) are given in the text version, and not by links to pictures. So more likely to help you - Jarvis_J 1:24 pm

0