我刚刚将我的应用更新到API级别25,试图让WebView显示datetime-local
以使用正确的选择器。但是现在,当我点击WebView中的元素时,我的应用程序崩溃,并在logcat中显示以下消息:
01-01 16:17:22.578 10219-10219/com.example.test548 W/ResourceType: No known package when getting value for resource number 0x020a0057
01-01 16:17:22.578 10219-10219/com.example.test548 W/System.err: android.content.res.Resources$NotFoundException: String resource ID #0x20a0057
01-01 16:17:22.578 10219-10219/com.example.test548 W/System.err: at android.content.res.Resources.getText(Resources.java:335)
01-01 16:17:22.578 10219-10219/com.example.test548 W/System.err: at android.content.Context.getText(Context.java:463)
01-01 16:17:22.578 10219-10219/com.example.test548 W/System.err: at org.chromium.ui.picker.DateTimePickerDialog.<init>(DateTimePickerDialog.java:78)
01-01 16:17:22.578 10219-10219/com.example.test548 W/System.err: at org.chromium.ui.picker.InputDialogContainer.showPickerDialog(InputDialogContainer.java:221)
01-01 16:17:22.578 10219-10219/com.example.test548 W/System.err: at org.chromium.ui.picker.InputDialogContainer.showPickerDialog(InputDialogContainer.java:102)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at org.chromium.content.browser.input.DateTimeChooserAndroid.createDateTimeChooser(DateTimeChooserAndroid.java:1188)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:41)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at android.os.Looper.loop(Looper.java:154)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6119)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at java.lang.reflect.Method.invoke(Native Method)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
01-01 16:17:22.579 10219-10219/com.example.test548 W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
01-01 16:17:22.581 10219-10219/com.example.test548 A/chromium: [FATAL:jni_android.cc(236)] Please include Java exception stack in crash report
01-01 16:17:22.695 10219-10219/com.example.test548 W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
01-01 16:17:22.695 10219-10219/com.example.test548 W/google-breakpad: Chrome build fingerprint:
01-01 16:17:22.695 10219-10219/com.example.test548 W/google-breakpad: 1.0.19
01-01 16:17:22.695 10219-10219/com.example.test548 W/google-breakpad: 20
01-01 16:17:22.695 10219-10219/com.example.test548 W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
01-01 16:17:22.695 10219-10219/com.example.test548 A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 10219 (le.test548)
调用堆栈中的所有包都不是我的代码。我做错了什么?
如何设置字符串资源“0x20a0057”以便不会发生崩溃?