Could not find class 'android.widget.ThemedSpinnerAdapter' [Android Studio]

前端 未结 4 446
攒了一身酷
攒了一身酷 2021-02-04 09:59

I am getting this weird error when I try to run my app on a pre API 21 device:

I/Choreographer: Skipped 39 frames!  The application may be doing too much work o         


        
4条回答
  •  醉话见心
    2021-02-04 10:21

    I also got same issue with spinner,it is running in some devices and not running in some devices. Because I put setAdapter(null). Because of that it is behaving like this. Instead of that put ArrayList arrayList = new ArrayList(); spinner.setAdapter(new ArrayAdapter(activity.this, android.R.layout.simple_dropdown_item_1line, arrayList)); then it will be work in all devices.

提交回复
热议问题