Android test project is crashing with error “Test run failed: Instrumentation run failed due to 'Process crashed.'”

前端 未结 5 761
予麋鹿
予麋鹿 2021-02-12 10:41

My problem seems little different than here Test run failed: Instrumentation run failed due to 'Process crashed.' when testing multiple Android activity
I have follo

5条回答
  •  情书的邮戳
    2021-02-12 11:02

    For those migrating to or currently using Androidx, this error results from using testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" instead of testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner".

    Using the latter resolves the error completely.

提交回复
热议问题