Failed to allocate a 3112972 byte allocation with 2019776 free bytes and 1972KB until OOM

异常:java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Failed to allocate a 3112972 byte allocation with 2019776 free bytes and 1972KB until OOM
OOM:Android 内存溢出(Java的这个异常是指,内存申请失败,前面那个数字是你想申请分配的内存字节,后面的那个数是实际可用的系统内存,显然小于前者。)

解决方法:在清单文件中添加两行代码:

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

你可能感兴趣的:(OOM)