我的安卓应用程序触发了这样一个OutOfMemoryError:
java.lang.OutOfMemoryError: Failed to allocate a 74649612 byte allocationDetails:据我所知,在得到OutOfMemoryError异常之前,有63 to,我们尝试分配74649612字节,但只有1048576空闲字节。
exception was thrown by a user handler's exceptionCaught() method while handling the following exception:java.lang.OutOfMemoryError: Java heap space
Dec 05, 2016 11:18:53 AM org.apache.catalina.core.ContainerBas
EXCEPTION: main
10-18 11:04:33.208 32110-32110/com.example.rajitha.myapplication E/AndroidRuntime: java.lang.OutOfMemoryError32110-32110/com.example.rajitha.myapplication E/AndroidRuntime: at android.view.View.draw(View.javaE/AndroidRu
因此,我一直在创建我的项目,并使用androidstudio的仿真器来运行和测试我的应用程序。工作很完美,但在我的android手机上测试时,我遇到了一个错误: java.lang.OutOfMemoryError: Failed to allocate a 51321612 byte allocation(Resources.java:1727)
at android.content.res.TypedArray.getDrawable(TypedArray
在运行从服务器下载多幅图像并存储到SD卡的应用程序时,我得到了java.lang.OutOfMemoryError的错误并使应用程序崩溃。executing doInBackground() at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at
.ect's gradle.properties file.For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024AndroidStudio) users:# any settings spec