-1

In Android Studio I imported pictures using File|New|image asset. Some pictures work fine but others are not only underlined with a zigzag red line in the project structure area but also I can't use them in my project. The images underlined with red are in the drawable folder. For example I imported a picture "pizza-small.jpg" and it didn't work. I tried to change the format using Gimp to a png picture but without success. I tried changing the resolution and aspect ration without success also.

I'm using Android Studio Arctic Fox. I googled the question many times without success.

Here is a screenshot

Nadirspam
  • 161
  • 7
  • 1
    Can AS use that image? Did you try to rename it without a dash? Is there a spell checker active? Can you post a link to that unaltered PNG? – xenoid Oct 26 '21 at 18:55
  • Thanks. it worked. I renamed it with a dash and and the error was gone. – Nadirspam Oct 27 '21 at 08:49
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Oct 27 '21 at 20:13

1 Answers1

0

I resolved the problem by renaming the file name of the picture from "pizza-small.png" to "pizza_small.png".

Nadirspam
  • 161
  • 7