我想在我的项目中使用日期选择器。但只要我运行该项目,它将引发“资源未发现异常”,并以下线出现,当我在XML文件拖动日期选择器资源未发现异常
The following classes could not be found:
- CalendarView (Change to android.widget.CalendarView, Fix Build Path, Edit XML)
- DatePicker (Change to android.widget.DatePicker, Fix Build Path, Edit XML)
的logcat分录如下:
FATAL EXCEPTION:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dateandtimepick/com.example.dateandtimepick.MainActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x16
哪有我纠正了代码。提前致谢。
看起来像一个坏import语句给我... – Goddchen 2013-04-22 10:54:47
@Goddchen那么我该怎么办? – 2013-04-22 10:56:19
其API您使用的? – 2013-04-22 10:56:45