Android CalendarView class cannot be found

匿名 (未验证) 提交于 2019-12-03 00:50:01

问题:

Im designing the xml format for a calendar to be used in an app, but I cant get the calendar to show in the graphical layout shower.

Instead I get the following 'error':

The following classes could not be found: - CalendarView (Change to android.widget.CalendarView, Fix Build Path, Edit XML)

The min SDK version for this project is 14 and its target version is 15.

Here is my XML code:

                                                                                   

Much appreciated! Thanks!

回答1:

you might be previewing your screen on Android Target 16. Try using Android Target 15 for Graphic Layout Editor (android icon on the top, in ADT 20). Looks like there is issue with Android Target 16.

NOTE: You don't need to set the project target just the target in the graphical layout editor.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!