我想在我的項目中使用日期選擇器。但只要我運行該項目,它將引發「資源未發現異常」,並以下線出現,當我在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