Reputation: 1
I am trying to fix these errors which has caused the build to fail. But I am noticing in the newest version of Studio it wont let me add the image files to mipmap to fix the problem. What should I do?
Upvotes: 0
Views: 569
Reputation: 1
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
just put this in your file and it will work
Upvotes: 0
Reputation: 191
Your project doesn't build because in your XML file there is a ImageView
with unrecognized image/source, @mipmap/ic_default_user
. Thus, you must change the source image to one that the XML will recognize:
@mipmap/ic_default_user
write some thing else. e.g @mipmap/ic_launcher
or @mipmap/ic_launcher_round
"@mipmap/"
and then press ctrl+space
when you are in focus of "@mipmap/"
.Upvotes: 0