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


リファレンス
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
  }
}
モジュールレベル構築.gradleは上のように追加されます.