1.做自动化测试的时候程序崩溃(espresso)
问题描述:
Test running failed: Instrumentation run failed due to 'Process crashed.'
使用androidx下的 AndroidJUnitRunner
//testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
gradle下的依赖
androidTestImplementation 'androidx.test:core:1.1.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-web:3.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.1'
2.Android studio编译报错:Error:(167, 25) Failed to resolve: support-core-utils
使用依赖库的时候依赖库的support版本低于项目版本导致的,升级Support Library就好了