نص الخطأ
java.lang.OutOfMemoryError: Failed to allocate a 33177612 byte allocation with 25165824 free bytes and 24MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 33177612 byte allocation with 25165824 free bytes and 24MB until OOM
يتجاوز التطبيق حد الذاكرة الذي يمنحه الجهاز. غالبًا السبب صور كبيرة أو كائنات مسرّبة أو قوائم ضخمة.
dumpsys meminfo.inSampleSize).Activity ومستمعين لم يُزالوا (LeakCanary).RecyclerView والترقيم في القوائم الطويلة.largeHeap حل مؤقت فقط؛ عالج السبب الحقيقي.adb shell dumpsys meminfo com.example.app adb shell am dumpheap com.example.app /data/local/tmp/h.hprof # manifest <application android:largeHeap="true" ...>
شغّل LeakCanary في debug وافحص ملف الذاكرة بعد كل ميزة كبيرة.
المؤلف والترخيص: Nibras Code