Are there any precautions when inserting the results of the response received from Retrofit2 in the Room?
Response results received from Retrofit
When I insert in Room, I kept getting errors in doInbackground, so I checked the error that the data is null.
I have no idea where or how to deal with it.
android
There is a conflict condition set for insert or other methods.
@Insert(onConflict = OnConflictStrategy.REPLACE)
Why don't you look for a conflict?
© 2024 OneMinuteCode. All rights reserved.