0

I'm working through the Sunshine App tutorials and am really stuck on putting an ImageView in my UI. Everything I've found has been doing it in the XML file and even those that I tried copying and pasting didn't work.

At first I had the ic_launcher only in the App Folder. Then after reading other solutions XML file I right clicked on main/res/drawable and did New→Image Asset so now all of those mipmap- contain the ic_launcher.png and it's still in my app as well, as you can see:

Screenshot of Android Studio

But now I've got no idea what to do for it to actually work. I tried a few things in the SRC, which seems to be where it goes:

  • @mipmap-hdpi/ic_launcher
  • @drawable/ic_launcher
  • ic_launcher
  • @mipmap/ic_launcher

None have worked.

Ryan
  • 699
  • 4
  • 13
  • 30

1 Answers1

0

I see that you are getting

Failed to convert @drawable/... into a drawable

I'm not sure if this will work, but you could try restarting your Android studio.

Android: failed to convert @drawable/picture into a drawable

Community
  • 1
  • 1
l-l
  • 3,804
  • 6
  • 36
  • 42