Android reports an error when calling each other using the webview component JS and Java

Source: Internet
Author: User
07-01 16:02:12.922: W/KeyCharacterMap(1901): No keyboard for id 007-01 16:02:12.952: W/KeyCharacterMap(1901): Using default keymap: /system/usr/keychars/qwerty.kcm.bin07-01 16:02:22.002: W/dalvikvm(1901): JNI WARNING: jarray 0x40550938 points to non-array object (Ljava/lang/String;)07-01 16:02:22.114: I/dalvikvm(1901): "WebViewCoreThread" prio=5 tid=9 NATIVE07-01 16:02:22.134: I/dalvikvm(1901):   | group="main" sCount=0 dsCount=0 obj=0x4051deb8 self=0x2a4b8807-01 16:02:22.134: I/dalvikvm(1901):   | sysTid=1909 nice=0 sched=0/0 cgrp=default handle=277216007-01 16:02:22.182: I/dalvikvm(1901):   | schedstat=( 2432291748 2800672977 219 )07-01 16:02:22.182: I/dalvikvm(1901):   at android.webkit.WebViewCore.nativeTouchUp(Native Method)07-01 16:02:22.182: I/dalvikvm(1901):   at android.webkit.WebViewCore.nativeTouchUp(Native Method)07-01 16:02:22.182: I/dalvikvm(1901):   at android.webkit.WebViewCore.access$3300(WebViewCore.java:53)07-01 16:02:22.182: I/dalvikvm(1901):   at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1158)07-01 16:02:22.241: I/dalvikvm(1901):   at android.os.Handler.dispatchMessage(Handler.java:99)07-01 16:02:22.241: I/dalvikvm(1901):   at android.os.Looper.loop(Looper.java:123)07-01 16:02:22.241: I/dalvikvm(1901):   at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629)07-01 16:02:22.241: I/dalvikvm(1901):   at java.lang.Thread.run(Thread.java:1019)07-01 16:02:22.241: E/dalvikvm(1901): VM aborting

VM crash caused by WebKit engine in android2.3


 
A bug exists in android2.2, 2.3, and 2.3.3, which is described in detail here.
Http://code.google.com/p/android/issues/detail? Id = 12987
The core of the problem lies in the following sentence: JNI warning: jarray 0x4074f6e0 points to non-array object (ljava/lang/string ;)
That is, when JNI is called, a string object in Java is accessed as an array, resulting in Virtual Machine crash.

It is basically a serious bug and cannot be solved. Therefore, if the webview component is used to call each other between JS and Java, it cannot adapt to all models, therefore, we recommend that you do not use the webview component when creating Android native applications. Otherwise, the 2.3 system will crash directly.


This problem is hard to solve. Come on !!!!!!!!!!!!!!


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.