Spinner Error “Spinner adapter view type count must be 1”

后端 未结 2 2060
说谎
说谎 2020-12-21 07:13

I am using Parse.com in my application when I use ParseQueryAdapter in fragment to retrieve data and pass to a spinner an error as

java.lang.IllegalArgumentE         


        
2条回答
  •  伪装坚强ぢ
    2020-12-21 08:14

    ParseQueryAdapter might be using SpinnerAdapter underneath.

    One way to solve this issue is to lower your targetSdkVersion. This error is being reported for targetSdkVersion of 21.

    Please see here : https://code.google.com/p/android/issues/detail?id=79011

    A long term solution is to fix the implementation of the adapter, which is not possible for your case until Parse team decides to fix it.

    I had the same issue with SpinnerAdapter and got it working without peripheral damage using targetSdkVersion 19. Hope it helps!

提交回复
热议问题