2

For some reason, my image icon is getting an error, despite all of my attempts to fix it...

I have read this question where the answer suggests to make the image icon in the mitmap folder. So, I changed the line of code that I had from @drawable/myImage to @mitmap/ic_launcher

enter image description here

You can see that there is an error on the image. Why could this be?

I have tried to:

  • Clean project
  • Rebuild project
  • Made sure @mitmap/ic_launcher actually exists:

enter image description here

The error still persists, even after all of my attempts. I have been stuck on this for multiple hours, and I cant get my head around it. Is it a problem with my code, or android studio? I would really appreciate all of your help!

Thanks,

Ruchir

Community
  • 1
  • 1
Ruchir Baronia
  • 7,406
  • 5
  • 48
  • 83

2 Answers2

4

In your manifest file, change @mitmap to @mipmap. That's the correct directory name.

android:icon="@mipmap/ic_launcher"
Mohammed Aouf Zouag
  • 17,042
  • 4
  • 41
  • 67
0

Your folder name is mipmap and you are using mitmap.

Archit Goel
  • 694
  • 5
  • 19