Instrumentation run failed due to 'Process crashed.'

前端 未结 6 1377
感动是毒
感动是毒 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:21

    I got the error:

    Test running failed: Instrumentation run failed due to 'Process crashed.'
    

    In my case, the android test console only showed the error above without any details.

    But in the logcat, the full error was shown. In my case, I forgot to add the AdMob app_id in AndroidManifest.xml

    So always remember to check the logcat for more error details!

提交回复
热议问题