Module with the Main dispatcher had failed to initialize. For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used
原因 Main Threadでの実行が必要なAPIを使用している。 対策 公式の回答がこちら https://developer.android.com/kotlin/coroutines/test#setting-ma … 続きを読む