Unfortunately app has stopped


#1

Hi,

I created a new app, tested live on appy builder and .apk file on bluestacks, the app was working without error but after publishing and downloading from play store there is an error “Unfortunately the app has stopped” and the app closes immediately. Could anybody helpme out to sort the issue.

The crash report on Google play console is as below:

java.lang.OutOfMemoryError:
at dalvik.system.VMRuntime.newNonMovableArray (Native Method)
at android.graphics.Bitmap.nativeCreate (Native Method)
at android.graphics.Bitmap.createBitmap (Bitmap.java:838)
at android.graphics.Bitmap.createBitmap (Bitmap.java:815)
at android.graphics.Bitmap.createBitmap (Bitmap.java:746)
at android.graphics.Bitmap.createScaledBitmap (Bitmap.java:622)
at com.google.appinventor.components.runtime.util.MediaUtil$2.run (MediaUtil.java:514)
at java.lang.Thread.run (Thread.java:818)


#2

see tip 1 and 2 here


Taifun


#3

Hey,
I had the Same Problem once and I got it Resolved with the help of community Members. The main thing you need to do it reduce your assets size

Try using : http://tinypng.com and reduce your image size.

It will solve most of the Problems and if it doesn’t then you can try reducing the number of screens and numbers of extensions.


#4

Hi Taifun,

Thank you for the information.


#5

Hi Abhi,

Thanks for the information, am working on this and will update once its working.