Status Update
Comments
ak...@google.com <ak...@google.com>
ra...@google.com <ra...@google.com>
ra...@google.com <ra...@google.com> #2
I am not sure I understand the use case. how can the benchmark be code to real world scenario when it's not possible to do right now ? which scenario is it ?
In any case, since this would be for benchmarking, this would clearly not be available through the public DSL. We should find a semi-private way of doing this (maybe the private variant API object could offer that functionality for instance or a property).
an...@google.com <an...@google.com> #3
We want benchmarks to measure code after Progaurd / R8, but it's not possible to turn that on for androidTests in library modules at the moment (to my knowledge?)
Benchmarks are also a public facing thing, but we have a plugin to help configure gradle builds for our users, so if support for this ends up in a private API, we could try to keep those usages localized to our code perhaps.
st...@google.com <st...@google.com> #4
Any update on the status of this request and when it can be supported?
Thanks,
Amanda
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)
```