ArrayList无法强制转换为LinkedTreeMap

时间:2019-06-25 10:53:33

标签: android arrays kotlin android-arrayadapter

我的应用未在适配器中显示列表,并且显示此错误:

  

java.util.ArrayList无法转换为com.google.gson.internal.LinkedTreeMap

val otherStrings = arrayOf("a", "b", "c")

val adapter = ArrayAdapter(this, R.layout.support_simple_spinner_dropdown_item, otherStrings)
selectReasonAutoCompleteTextView.setAdapter(adapter)
selectReasonAutoCompleteTextView.showDropDown()

0 个答案:

没有答案