Good morning, Yesterday I updated my Android Studio software to the latest version. From now, my app keeps stopping when I run the apk built in the software. I noticed that when I deleted all the images and icons of the app screen the app worked. So I see that when I use: "android:background: @drawable/... " the app will crash in after running the apk. I don't know what happens, because yesterday the app worked very well also with the images or icons in the screen. Please I ask for help, because my app development is now blocked. Thank you so much!
Asked
Active
Viewed 41 times
0
-
3Do you have any stacktrace ? – Anatolii Jun 22 '18 at 10:28
-
1Possible duplicate of [Unfortunately MyApp has stopped. How can I solve this?](https://stackoverflow.com/questions/23353173/unfortunately-myapp-has-stopped-how-can-i-solve-this) – Vladyslav Matviienko Jun 22 '18 at 10:34
1 Answers
0
There could be many reasons for this. I would suggest to not keep every image in the drawable folder. Instead, keep them in folders according to their size
ldpi = 240×320 pixels
mdpi = 320×480 pixels
hdpi = 480×800 pixels
xhdpi = 720×1280 pixels
Refer this link for details

sonudelhikkc
- 134
- 10