You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val testList: MutableLiveData<MutableList<String>> by serialLiveData(null)
fun addTest(text: String) {
val currentList = testList.value ?: mutableListOf()
currentList.add(text)
testList.value = currentList
}
使用了 MutableList 或者 List ,都不行,都会报错
kotlinx.serialization.SerializationException: Serializer for class 'ArrayList' is not found.
Please ensure that class is marked as '@serializable' and that the serialization compiler plugin is applied.
The text was updated successfully, but these errors were encountered:
使用了 MutableList 或者 List ,都不行,都会报错
kotlinx.serialization.SerializationException: Serializer for class 'ArrayList' is not found.
Please ensure that class is marked as '@serializable' and that the serialization compiler plugin is applied.
The text was updated successfully, but these errors were encountered: