-1

Whenever I have to put a PNG in my Android Studio File it says 'Unfortunately App has stopped'. Why is this? I'm using Mac.

Zoe
  • 27,060
  • 21
  • 118
  • 148
Frezoki
  • 47
  • 6
  • Possible 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) – Zoe Feb 28 '19 at 20:08

1 Answers1

1

You should check the image's size. It may be too big and could cause an OutOfMemory error.

When you add an image to your project, it also helps adding it in several sizes (hdpi, ldpi, mdpi, xhdpi, xxhdpi, xxxhdpi) for your application to use the best one for your device.

Hope it helps!

P. Vera
  • 315
  • 4
  • 11
  • But it works on my Windows PC with the exact same pictures. – Frezoki Feb 13 '19 at 10:52
  • You mean in the virtual machine? It could be that the virtual machine you're using is not the same device as your phisical one. I got one app working on some devices but not another ones, idk. – P. Vera Feb 13 '19 at 11:51