gpt4 book ai didi

Android ANR/4.4 版本崩溃

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:52:33 25 4
gpt4 key购买 nike

全部,

我在 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 ANR/4.4 版本崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37652664/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com