我的应用程序包含多个布局。我已经尝试将布局减少到最低限度。除了崩溃的 android 4.0.4 之外,它似乎适用于所有版本的 android。
任何人都可以帮助解决这个问题吗?这是与内存相关的问题吗?
堆栈跟踪给出为
STACK_TRACE=java.lang.StackOverflowError
at android.view.GLES20RecordingCanvas.drawTextRun(GLES20RecordingCanvas.java:295)
at android.text.TextLine.drawTextRun(TextLine.java:1067)
at android.text.TextLine.handleText(TextLine.java:791)
at android.text.TextLine.handleRun(TextLine.java:1034)
at android.text.TextLine.drawRun(TextLine.java:397)
at android.text.TextLine.draw(TextLine.java:195)
at android.text.Layout.draw(Layout.java:425)
at android.text.BoringLayout.draw(BoringLayout.java:400)
at android.widget.TextView.onDraw(TextView.java:5265)
at android.view.View.draw(View.java:11177)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.widget.FrameLayout.draw(FrameLayout.java:450)
at android.widget.ScrollView.draw(ScrollView.java:1788)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.widget.FrameLayout.draw(FrameLayout.java:450)
at android.widget.ScrollView.draw(ScrollView.java:1788)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.support.v4.view.ViewPager.draw(ViewPager.java:1923)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.widget.FrameLayout.draw(FrameLayout.java:450)
at android.view.View.getDisplayList(View.java:10616)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.getDisplayList(View.java:10614)
at android.view.ViewGroup.drawChild(ViewGroup.java:2858)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
at android.view.View.draw(View.java:11180)
at android.widget.FrameLayout.draw(FrameLayout.java:450)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2295)
at android.view.View.getDisplayList(View.java:10616)
at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:890)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2113)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1837)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2649)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4507)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:978)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
at dalvik.system.NativeStart.main(Native Method)