Instrumentation run failed due to 'Process crashed.'

前端 未结 6 1374
感动是毒
感动是毒 2021-02-02 06:12

I wanted to run the following test:

package com.xxx.yyy;

import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runn         


        
6条回答
  •  不思量自难忘°
    2021-02-02 06:29

    Found the solution by myself. I updated to AndroidX, therefor I needed also to update my build.gradle file from:

    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    

    to

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    

提交回复
热议问题