我的应用程序包含多个布局。我已经尝试将布局减少到最小。它似乎适用于所有版本的android,除了在Android 4.0.4崩溃。
有人可以帮忙解决这个问题吗?这是与内存有关的问题吗?
堆栈跟踪以
给出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)
答案 0 :(得分:0)
工具栏中有些元素可以根据您使用的Android版本使用。你还有android Manifest文件中的版本。尝试开始检查..