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.*; You come back to debug - again everything is fine: 
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' How could this be fixed?

