コンテンツへスキップ

TechAtoQ

  • Sample Page

JUnit5

Module with the Main dispatcher had failed to initialize. For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used

1月 10, 20265月 31, 2022 by user

原因 Main Threadでの実行が必要なAPIを使用している。 対策 公式の回答がこちら https://developer.android.com/kotlin/coroutines/test#setting-ma … 続きを読む

カテゴリー Android、JUnit5、Kotlin
© 2026 TechAtoQ • Built with GeneratePress