在codeLabs教程(Android - Kotlin - Room with a View)中,他们使用了"viewModelScope.launch(Dispatchers.IO)“来调用insert请参考链接, https://codelabs.developers.google.com/codelabs/android-room-with-a-view-kotlin/#8 fun insert(
在我的安卓应用程序的Fragment中,我使用SharedPreferences和Moshi来保存和加载我从RecyclerView获得的数据。private fun saveData() { val editor = sharedPreferences.edit()
val moshi = Mosh