帮我修复此应用崩溃。感谢。
登录:
java.lang.OutOfMemoryError:
at java.lang.Thread.nativeCreate (Native Method)
at java.lang.Thread.start (Thread.java:1063)
at java.util.concurrent.ThreadPoolExecutor.addWorker (ThreadPoolExecutor.java:920)
at java.util.concurrent.ThreadPoolExecutor.execute (ThreadPoolExecutor.java:1327)
at com.google.android.gms.ads.internal.util.future.v.run (Unknown Source)
at com.google.android.gms.ads.internal.util.future.u.a (:com.google.android.gms.DynamiteModulesA:20)
at com.google.android.gms.ads.internal.util.future.ac.b (:com.google.android.gms.DynamiteModulesA:18)
at com.google.android.gms.ads.safebrowsing.e.a (:com.google.android.gms.DynamiteModulesA:15)
at lr.handleMessage (:com.google.android.gms.DynamiteModulesA:10)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:145)
at android.app.ActivityThread.main (ActivityThread.java:6892)
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.ru (ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1199)
答案 0 :(得分:0)
在Application标签的Menifest.xml中添加以下行;
android:largeHeap="true"
答案 1 :(得分:0)
您的问题有非常广泛的解决方案。 找出真正问题的最佳方法是看看
https://developer.android.com/topic/performance/memory.html
此外,您可以进行堆转储以查找内存泄漏的位置。形成您的日志我只告诉您使用的是较低规格的设备。