Tôi đang cố gắng để nhập khẩuAndroid Espresso thử nghiệm 'Không thể giải quyết biểu tượng 'InstrumentationRegistry''
import android.support.test.InstrumentationRegistry;
tôi tập build.gradle
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'
trong cấu hình mặc định:
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Có thư viện nào tôi đang thiếu ở đây không? Tôi đang cố gắng nhập InstrumentationRegistry nhưng nó không nhận ra nó!
vui lòng truy cập http://stackoverflow.com/questions/30373074/sources-of-testing-support-library-in-android-studio. Hi vọng điêu nay co ich . –
@IntelliJAmiya yeah Tôi đã cố gắng mà không hoạt động. – Adz
bạn có thấy: http://stackoverflow.com/questions/29869832/android-studio-project-setup-for-espresso-tests – piotrek1543