Fixed
Status Update
Comments
ak...@google.com <ak...@google.com>
ra...@google.com <ra...@google.com>
ra...@google.com <ra...@google.com> #2
Thank you for the report! This will be fixed in the next Android Studio canary.
an...@google.com <an...@google.com> #3
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 6
- Android Gradle Plugin 8.8.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
st...@google.com <st...@google.com> #4
FWIW, this fix has made it at least to Android Studio Ladybug Feature Drop | 2024.2.2 RC 1.
Description
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Android Studio indicated there were no problems with this code (there was a green checkmark in the upper right corner of the code window). However, when I run ./gradlew check I get the following warning:
Monochrome icon is not defined
If android:roundIcon and android:icon are both in your manifest, you must either remove the reference to android:roundIcon if it is not needed; or, supply the monochrome icon in the drawable defined by the android:roundIcon and android:icon attribute.
For example, if android:roundIcon and android:icon are both in the manifest, a launcher might choose to use android:roundIcon over android:icon to display the adaptive app icon. Therefore, your themed application iconwill not show if your monochrome attribute is not also specified in android:roundIcon.
To suppress this error, use the issue id "MonochromeLauncherIcon" as explained in the Suppressing Warnings and Errors section.
The correction to fix this warning is to make this change to the XML file:
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
</adaptive-icon>
I think Android Studio should detect this warning before running ./gradlew check.
Build: AI-241.18034.62.2411.12169540, 202408010325
AS: Koala | 2024.1.1 Patch 2
AI-241.18034.62.2411.12169540, JRE 17.0.11+0--11852314x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 1920.0x1080.0
Android Gradle Plugin: 8.5.2
Gradle: 8.7
Gradle JDK: JetBrains Runtime 17.0.11
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```