java.lang.OutOfMemoryError: Failed to allocate a 240250012 byte allocation with 16777216 free bytes
出现该类似的错误提示时,加如下两句加粗倾斜的代码ji解决即可
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:largeHeap="true"
android:hardwareAccelerated="false"
android:theme="@style/AppTheme">
本文介绍了解决Java应用程序中出现的OutOfMemoryError的具体方法,通过在AndroidManifest.xml文件中添加特定属性,可以有效增加堆内存大小,避免因内存不足导致的应用崩溃。
1263

被折叠的 条评论
为什么被折叠?



