Hi guys, I’m new and I’m learning. My app is learning an error when switching screens and is closing the app. The message below appears. Can someone help me solve it, please?
java.lang.OutOfMemoryError: Failed to allocate a 1048588 byte allocation with 495552 free bytes and 483KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:650)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:626)
at com.google.appinventor.components.runtime.util.MediaUtil.hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME(SourceFile:509)
at com.google.appinventor.components.runtime.util.MediaUtil.B8WBXPBCF2jGfUDZZU2zV5EYdqbUBu0lAZ0THCEqYyuE8VACR9dY7rDnwBIqh64T(SourceFile:42)
at com.google.appinventor.components.runtime.util.MediaUtil$2.run(SourceFile:456)
at java.lang.Thread.run(Thread.java:760)
Guys, you were right, the images were causing the error. deletes all images from assets and is no longer crashing. Thanks. Now the problem is another. How can I get an icon that does not cause this error?