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?
Asked
Active
Viewed 442 times
0
-
Try to rebuild project . – ADM Apr 02 '18 at 19:00
-
Who knows? Research the error you are getting. Few are going to try and figure out what is going on from a screencap. – Apr 02 '18 at 21:02
2 Answers
0
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:
- Instead of
@mipmap/ic_default_user
write some thing else. e.g@mipmap/ic_launcher
or@mipmap/ic_launcher_round
- You may see what images the XML recognize by writing
"@mipmap/"
and then pressctrl+space
when you are in focus of"@mipmap/"
.

yoav
- 191
- 1
- 2
- 10
0
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
just put this in your file and it will work

andrewJames
- 19,570
- 8
- 19
- 51