当前位置: 代码迷 >> Android >> :关于内存溢出的有关问题!
  详细解决方案

:关于内存溢出的有关问题!

热度:255   发布时间:2016-05-01 22:28:53.0
紧急求助:关于内存溢出的问题!!!!!!
04-16 06:47:41.801: WARN/dalvikvm(1621): threadid=3: thread exiting with uncaught exception (group=0x4001aa28)
04-16 06:47:41.801: ERROR/AndroidRuntime(1621): Uncaught handler: thread main exiting due to uncaught exception
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): java.lang.OutOfMemoryError
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at testView.moandroid.Text3.<init>(ResolveData.java:686)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at testView.moandroid.ResolveData.text3(ResolveData.java:553)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at testView.moandroid.ResolveData.transdata(ResolveData.java:218)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at testView.moandroid.testView.onDraw(testView.java:78)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.View.draw(View.java:6274)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewGroup.drawChild(ViewGroup.java:1526)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewGroup.drawChild(ViewGroup.java:1524)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.View.draw(View.java:6277)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.widget.FrameLayout.draw(FrameLayout.java:352)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewGroup.drawChild(ViewGroup.java:1526)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewGroup.drawChild(ViewGroup.java:1524)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.View.draw(View.java:6277)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.widget.FrameLayout.draw(FrameLayout.java:352)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1883)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewRoot.draw(ViewRoot.java:1332)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewRoot.performTraversals(ViewRoot.java:1097)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.view.ViewRoot.handleMessage(ViewRoot.java:1613)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.os.Handler.dispatchMessage(Handler.java:99)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.os.Looper.loop(Looper.java:123)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at android.app.ActivityThread.main(ActivityThread.java:4203)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at java.lang.reflect.Method.invokeNative(Native Method)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at java.lang.reflect.Method.invoke(Method.java:521)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
04-16 06:47:41.813: ERROR/AndroidRuntime(1621): at dalvik.system.NativeStart.main(Native Method)

------解决方案--------------------
看你的这个错误信息你是在用View来自己画东西的,貌似在做游戏画布重画,内存溢出有可能是因为你的资源没有释放的原因。比如你画过的图片资源,如果有释放代码看是否执行。好运……
------解决方案--------------------
内存很有可能是资源没释放的问题
  相关解决方案