External image added in android studio not working

127 views Asked by At

I downloaded external images to the android studio into the drawable folder of res but when I select the ImageView to add the same image on the screen, the image is not located there.

In the drawable folder, the image is being displayed with the red color, showing an error

How can I avoid this error or can use the external image on the android studio?

This is what is being displayed after pasting the image in drawable

1

There are 1 answers

3
Mr.Droid On

You must know the drawable naming rules in Android

1 - The file name must not contain any space

2 - Use an underscore when using more than one word