Android引发错误:这是什么意思?

02-27 19:57:57.935: E/AndroidRuntime(14261): FATAL EXCEPTION: main
02-27 19:57:57.935: E/AndroidRuntime(14261): Process: com.vamC.jdbc, PID: 14261
02-27 19:57:57.935: E/AndroidRuntime(14261): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vamC.jdbc/classification.ClassificationTest}: android.content.res.Resources$NotFoundException: String resource ID #0x2
02-27 19:57:57.935: E/AndroidRuntime(14261):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2359)
02-27 19:57:57.935: E/AndroidRuntime(14261):    at android.app.ActivityThread.startActivityNow(ActivityThread.java:2183)
02-27 19:57:57.935: E/AndroidRuntime(14261):    at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:136)

最佳答案

这意味着您已初始化一个不在当前 Activity 布局中的ID。

关于android - 致命异常: Main android.content.res.Resources$NotFoundException: String resource ID,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35671001/

10-10 14:41