searchablespinner
searchablespinner copied to clipboard
Inflating Error on Android 4.4 | Need help
Caused by: java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Constructor.constructNative (Native Method)
at java.lang.reflect.Constructor.newInstance (Constructor.java:423)
at android.view.LayoutInflater.createView (LayoutInflater.java:594)
Caused by: java.lang.NoSuchMethodError:
at gr.escsoft.michaelprimez.searchablespinner.SearchableSpinner.
@dononcharles did you resolve this? I am facing the same issue in Android 5.1. The spinner drop-down doesn't inflate with options.
Hi, i did not solve that because after long research i saw that his library only works for API greater than 23. To remedy that in my project, i was obliged to create two differents Activity or Fragment. One using "michaelprimez/searchablespinner" and the second using this library "miteshpithadiya/SearchableSpinner". And where i was clicking to the menu, i did that :
if (Build.VERSION.SDK_INT < 21){
yourActivity= new SearchActivity_under21(); AP <= 21
}else{
yourActivity = new SearchActivity(); // API > 21
}
Hope it helps