I have created all my adaptive icons in the Image Asset tool but its not creating the ic_launcher_foreground.xml
file - which in turn is causing my build to fail because the foreground.xml file is being referenced in the ic_launcher.xml and ic_launcher_round.xml files.
I have read many threads on how to resolve this but none of them are working.
As well, both ic_launcher.xml and ic_launcher_round.xml files are specifically referencing these two files:
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
The /drawable
folder is being created with the ic_launcher_background.xml file, but the Image Asset tool is not creating a /mipmap
folder - it looks to be creating all the other /mipmap-XYZdpi
folders and icons.
I bring this up because alot of other threads show the ic_launcher.xml and ic_launcher_round.xml files reference both background.xml and foreground.xml files in the same /drawable
folder, unlike mine above.
In Image Asset: Foreground Tab: Layer Name: ic_launcher_foreground Asset Type: image Path: /dev/myApp/resources/myCustomIcon.png Background Tab: Layer Name: ic_launcher_background Asset Type: image Path: res/drawable/ic_launcher_background.xml
The only time I can get the ic_launcher_foreground.xml
file to appear in the "Output Files" screen is if on the foreground tab I select Asset Type: Clip Art
UPDATE:
I found a ic_launcher_foreground.xml
file in a drawable (v24)
folder deep in an Android Studio folder related to my project. I copied that file to my projects res/drawable
folder - and now I get the Android half robot Icon for my app when it compiles to my test device.