Java – Android ImageView not loaded

I'm using Android ImageView. I put the image in the drawable folder and change the ImageView source to this image But it doesn't show the image in the preview panel. When I open the image in Android studio, it will show such an error

But I can open pictures on my computer desktop So why do errors occur and how to solve them?

Solution

Sounds like PIAC PNG is not a PNG file, you just typed one on it Png extension and expect it to be a PNG file Open the file (possibly. JPG) and save it as actual The PNG file may solve the problem

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>