4.4版本的Android ANR /崩溃

时间:2016-06-06 08:22:42

标签: android

所有

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

  

在android.view.GLES20Canvas.nDrawDisplayList(Native Method)中   android.view.GLES20Canvas.drawDisplayList(GLES20Canvas.java:420)at at   android.view.HardwareRenderer $ GlRenderer.drawDisplayList(HardwareRenderer.java:1661)   在   android.view.HardwareRenderer $ GlRenderer.draw(HardwareRenderer.java:1484)   在android.view.ViewRootImpl.draw(ViewRootImpl.java:2685)at   android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2551)at   android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2157)at at   android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1239)at   android.view.ViewRootImpl $ TraversalRunnable.run(ViewRootImpl.java:6396)   在   android.view.Choreographer $ CallbackRecord.run(Choreographer.java:813)   在android.view.Choreographer.doCallbacks(Choreographer.java:613)at   android.view.Choreographer.doFrame(Choreographer.java:583)at   android.view.Choreographer $ FrameDisplayEventReceiver.run(Choreographer.java:799)   在android.os.Handler.handleCallback(Handler.java:733)处   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)   在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)at   dalvik.system.NativeStart.main(原生方法)

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

由于 阿米特

1 个答案:

答案 0 :(得分:3)

尝试在运行时为滚动视图停用硬件加速

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?