Ich versuche zu importierenAndroid Espresso Test InstrumentationRegistry ' '
import android.support.test.InstrumentationRegistry;
meine build.gradle Datei
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
androidTestCompile 'com.android.support.test:runner:0.2'
androidTestCompile 'com.android.support.test:rules:0.2'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
in Standard-config' Kann nicht Symbol lösen':
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Gibt es eine Bibliothek, die ich hier vermisse? Ich versuche InstrumentationRegistry zu importieren, aber es erkennt es nicht!
besuchen Sie bitte http://stackoverflow.com/questions/30373074/sources-of-testing-support-library-in-android-studio. Hoffe das hilft . –
@IntelliJAmiya yeah Ich habe schon versucht, das funktioniert nicht. – Adz
hast du gesehen: http://stackoverflow.com/questions/29869832/android-studio-project-setup-for-es-presso-tests – piotrek1543