Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 获取资源号0x020a0057的值时没有已知的包_Android_Webview_Datepicker - Fatal编程技术网

Android 获取资源号0x020a0057的值时没有已知的包

Android 获取资源号0x020a0057的值时没有已知的包,android,webview,datepicker,Android,Webview,Datepicker,我刚刚将我的应用程序更新到API级别25,试图使用合适的选择器显示Web视图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.

我刚刚将我的应用程序更新到API级别25,试图使用合适的选择器显示Web视图
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)
01-01 16:17:22.578 10219-10219/com.example.test548 W/ResourceType:获取资源号0x020a0057的值时没有已知的包
01-01 16:17:22.578 10219-10219/com.example.test548 W/System.err:android.content.res.Resources$NotFoundException:String资源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:org.chromium.ui.picker.DateTimePickerDialog.(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.NativeDorUnloponce(本机方法)
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(本机方法)
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:[致命:jni_android.cc(236)]请在崩溃报告中包含Java异常堆栈
1-1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10########
01-01 16:17:22.695 10219-10219/com.example.test548 W/google breakpad:Chrome构建指纹:
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
1-1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10########
01-01 16:17:22.695 10219-10219/com.example.test548 A/libc:tid 10219中的致命信号6(SIGABRT),代码-6(le.test548)
调用堆栈中的包都不是我的代码。我做错了什么


如何设置字符串资源“0x20a0057”以避免崩溃发生?

您是否成功地消除了异常?