Caused by: java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked

cluelin·2021년 12월 21일
0

참조
https://dnight.tistory.com/entry/javalangRuntimeException-Method-myLooper-in-androidosLooper-not-mocked

Caused by: java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked

android {
  // ...
  testOptions { 
    unitTests.returnDefaultValues = true
  }
}

모듈레벨 build.gradle에서 위와같이 추가해준다.

0개의 댓글