在选项卡中的活动之间切换会出现应用程序意外停止的错误。请重试

发布于 2024-12-07 08:18:55 字数 9451 浏览 0 评论 0原文

我正在开发 Android 应用程序,但我对以下错误感到震惊。你们中的任何人都可以帮我解决这个错误吗:

当我在选项卡中的活动之间切换时,我可以在第三次执行 2 次,但收到错误消息:抱歉...应用程序已意外停止。请重试。 我尝试从 LogCat 文件中获取信息,下面是信息:

10-19 03:21:53.794: INFO/dalvikvm(460): threadid=1: stack overflow on call to Lsun/misc/Unsafe;.compareAndSwapInt:ZLJII
10-19 03:21:53.804: INFO/dalvikvm(460):   method requires 24+20+0=44 bytes, fp is 0x4186931c (28 left)
10-19 03:21:53.804: INFO/dalvikvm(460):   expanding stack end (0x41869300 to 0x41869000)
10-19 03:21:53.815: INFO/dalvikvm(460): Shrank stack (to 0x41869300, curFrame is 0x4186bc60)
10-19 03:21:53.844: DEBUG/AndroidRuntime(460): Shutting down VM
10-19 03:21:53.854: WARN/dalvikvm(460): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): FATAL EXCEPTION: main
10-19 03:21:53.984: ERROR/AndroidRuntime(460): java.lang.StackOverflowError
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at java.util.concurrent.locks.AbstractQueuedSynchronizer.compareAndSetState(AbstractQueuedSynchronizer.java:522)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:182)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:261)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at java.util.concurrent.CopyOnWriteArrayList.remove(CopyOnWriteArrayList.java:490)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewTreeObserver.removeOnPreDrawListener(ViewTreeObserver.java:377)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.TextView.onDraw(TextView.java:3875)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6740)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view
10-19 03:21:54.265: DEBUG/dalvikvm(460): GC_FOR_MALLOC freed 3579 objects / 314384 bytes in 218ms
10-19 03:21:54.335: WARN/ActivityManager(59):   Force finishing activity com.muo.Livegroups/.Main
10-19 03:21:54.984: WARN/ActivityManager(59): Activity pause timeout for HistoryRecord{450548b0 com.muo.Livegroups/.Main}
10-19 03:21:57.244: INFO/Process(460): Sending signal. PID: 460 SIG: 9
10-19 03:21:57.334: INFO/ActivityManager(59): Process com.muo.Livegroups (pid 460) has died.
10-19 03:21:57.364: INFO/WindowManager(59): WIN DEATH: Window{45054b98 com.muo.Livegroups/com.muo.Livegroups.Main paused=false}
10-19 03:21:57.414: WARN/InputManagerService(59): Got RemoteException sending setActive(false) notification to pid 460 uid 10036
10-19 03:22:04.183: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
10-19 03:22:06.441: WARN/ActivityManager(59): Activity destroy timeout for HistoryRecord{450548b0 com.muo.Livegroups/.Main}

我尝试使用 logcat 并获得了上述信息。

任何人都可以帮助我找到解决方案,只有当我第三次去不同的活动时才会出现错误。前2次效果很好。

I am working on android application and I am struck at the below error. Can anybody of you help me out with this error:

When I switch between activities in a tab I was able to do it for 2 times on 3rd time I get the error saying Sorry...application has stopped unexpectedly. Please try again.
I tried to take the info from LogCat file below is the information:

10-19 03:21:53.794: INFO/dalvikvm(460): threadid=1: stack overflow on call to Lsun/misc/Unsafe;.compareAndSwapInt:ZLJII
10-19 03:21:53.804: INFO/dalvikvm(460):   method requires 24+20+0=44 bytes, fp is 0x4186931c (28 left)
10-19 03:21:53.804: INFO/dalvikvm(460):   expanding stack end (0x41869300 to 0x41869000)
10-19 03:21:53.815: INFO/dalvikvm(460): Shrank stack (to 0x41869300, curFrame is 0x4186bc60)
10-19 03:21:53.844: DEBUG/AndroidRuntime(460): Shutting down VM
10-19 03:21:53.854: WARN/dalvikvm(460): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): FATAL EXCEPTION: main
10-19 03:21:53.984: ERROR/AndroidRuntime(460): java.lang.StackOverflowError
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at java.util.concurrent.locks.AbstractQueuedSynchronizer.compareAndSetState(AbstractQueuedSynchronizer.java:522)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:182)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:261)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at java.util.concurrent.CopyOnWriteArrayList.remove(CopyOnWriteArrayList.java:490)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewTreeObserver.removeOnPreDrawListener(ViewTreeObserver.java:377)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.TextView.onDraw(TextView.java:3875)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6740)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460):     at android.view
10-19 03:21:54.265: DEBUG/dalvikvm(460): GC_FOR_MALLOC freed 3579 objects / 314384 bytes in 218ms
10-19 03:21:54.335: WARN/ActivityManager(59):   Force finishing activity com.muo.Livegroups/.Main
10-19 03:21:54.984: WARN/ActivityManager(59): Activity pause timeout for HistoryRecord{450548b0 com.muo.Livegroups/.Main}
10-19 03:21:57.244: INFO/Process(460): Sending signal. PID: 460 SIG: 9
10-19 03:21:57.334: INFO/ActivityManager(59): Process com.muo.Livegroups (pid 460) has died.
10-19 03:21:57.364: INFO/WindowManager(59): WIN DEATH: Window{45054b98 com.muo.Livegroups/com.muo.Livegroups.Main paused=false}
10-19 03:21:57.414: WARN/InputManagerService(59): Got RemoteException sending setActive(false) notification to pid 460 uid 10036
10-19 03:22:04.183: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
10-19 03:22:06.441: WARN/ActivityManager(59): Activity destroy timeout for HistoryRecord{450548b0 com.muo.Livegroups/.Main}

I tried to use logcat and got the above information.

Can anybody help me to find the solution I get the error only when I go to different activity on 3rd time. First 2 times it works fine.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晚雾 2024-12-14 08:18:55

您的 UI 太复杂,并且在尝试渲染它时堆栈空间不足。使用层次结构视图并尝试减少 Activity 的根 View 与最远叶子之间的层数。

Your UI is too complicated, and you are running out of stack space when trying to render it. Use Hierarchy View and try to reduce the number of layers between the root View of your activity and the farthest leaves.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文