Android版ANR /崩溃版4.4

前端之家收集整理的这篇文章主要介绍了Android版ANR /崩溃版4.4前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

所有,

我正面临Android 4.4设备的ANR /崩溃.以下是我从设备收到的提及日志.我仍然无法调试/关联此问题.有人可以帮我跟踪并解决这个问题.

at android.view.GLES20Canvas.nDrawDisplayList(Native Method) at
android.view.GLES20Canvas.drawDisplayList(GLES20Canvas.java:420) at
android.view.HardwareRenderer$GlRenderer.drawDisplayList(HardwareRenderer.java:1661)
at
android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1484)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2685) at
android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2551) at
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2157) at
android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1239) at
android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6396)
at
android.view.Choreographer$CallbackRecord.run(Choreographer.java:813)
at android.view.Choreographer.doCallbacks(Choreographer.java:613) at
android.view.Choreographer.doFrame(Choreographer.java:583) at
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:799)
at android.os.Handler.handleCallback(Handler.java:733) at
android.os.Handler.dispatchMessage(Handler.java:95) at
android.os.Looper.loop(Looper.java:146) at
android.app.ActivityThread.main(ActivityThread.java:5511) at
java.lang.reflect.Method.invokeNative(Native Method) at
java.lang.reflect.Method.invoke(Method.java:515) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099) at
dalvik.system.NativeStart.main(Native Method)

请检查并帮我解决这个问题.

谢谢
阿米特

最佳答案
尝试在运行时禁用scrollview的硬件加速.

View scroll = layout.findViewById(R.id.scrollView1);
scroll.setLayerType(View.LAYER_TYPE_SOFTWARE,null);

我找到了这个更详细的解释,它可以帮助你检查一次

WebView in ScrollView: “View too large to fit into drawing cache” – how to rework layout?

猜你在找的Android相关文章