APP闪退,
看提示这大致的意思是内存不够?应该怎么解决?百度查了下有文章说在manifest.xml中添加一个属性:android:largeHeap="true",这个manifest.xml在哪里?应该怎么加?
日志如下:
BOARD:rk30sdk
BOOTLOADER:unknown
BRAND:Android
CPU_ABI:armeabi-v7a
CPU_ABI2:armeabi
DEVICE:rk3288_box
DISPLAY:F4932QA_FF62542000536AF0_HDMI_V2.0_20200612
FINGERPRINT:Android/rk3288_box/rk3288_box:5.1.1/LMY49F/mazhiguang06120720:userdebug/test-keys
HARDWARE:rk30board
HOST:ubuntu138
ID:LMY49F
IS_DEBUGGABLE:true
MANUFACTURER:rockchip
MODEL:rk3288_box
PRODUCT:rk3288_box
RADIO:unknown
SERIAL:FE3210025736
SUPPORTED_32_BIT_ABIS:[Ljava.lang.String;@33cefce1
SUPPORTED_64_BIT_ABIS:[Ljava.lang.String;@17346a06
SUPPORTED_ABIS:[Ljava.lang.String;@204328c7
TAG:Build
TAGS:test-keys
TIME:1591946536000
TYPE:userdebug
UNKNOWN:unknown
USER:mazhiguang
java.lang.OutOfMemoryError: Failed to allocate a 193331982 byte allocation with 16777216 free bytes and 146MB until OOM
at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:133)
at java.lang.StringBuilder.append(StringBuilder.java:124)
at org.json.JSONStringer.string(JSONStringer.java:344)
at org.json.JSONStringer.value(JSONStringer.java:252)
at org.json.JSONObject.quote(JSONObject.java:766)
at io.dcloud.common.util.JSONUtil.toJSONableString(Unknown Source)
at io.dcloud.js.file.FileFeatureImpl$1.onExecuting(Unknown Source)
at io.dcloud.common.adapter.util.AsyncTaskHandler$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
3 个回复
DCloud_uniCloud_JSON
必现吗?如何复现你说的问题,另外附一个apk安装包。
DCloud_Android_ST
什么手机?内存爆满。看下加载了什么导致内存溢出了。largeHeap默认就是配置成true的
8***@qq.com
这个日志是怎么记录的哇,我这个也会偶尔闪退