美文网首页Android性能优化
Caused by: java.lang.OutOfMemory

Caused by: java.lang.OutOfMemory

作者: hao_developer | 来源:发表于2020-11-10 09:36 被阅读0次

最笨拙的方法:
解决Android 内存溢出

其实你可以添加在你的清单

android:hardwareAccelerated="false"
android:largeHeap="true"

在AndroidManifest.xml文件里面配置以上两行代码

<application
    android:allowBackup="true"
    android:hardwareAccelerated="false"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

相关文章

网友评论

    本文标题:Caused by: java.lang.OutOfMemory

    本文链接:https://www.haomeiwen.com/subject/pchlbktx.html