'ImageView is crashing devices below android 9
So I made an app and my users with android 8 and below said in feedback that they can't open the app here is the problem when I tried my app with my old phone
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pg3d.myapplication/com.pg3d.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class ImageView
so these devices can't handle image view so I made a test app and I ONLY put 1 image view
In this case this was the problem: java.lang.OutOfMemoryError: Failed to allocate a 383533068 byte allocation with 4186976 free bytes and 125MB until OOM
What I experienced is that the app opened for me if I put a drawable with a size under 600kb but it didn't open when I used 3 low size picture What could I do with my Image View? I am a junior dev I am not really experienced also I am a noob at using computer
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
