Status Update
Comments
ra...@google.com <ra...@google.com>
rv...@mozilla.com <rv...@mozilla.com> #2
I don't think the average developer understands the distinction between method references and method definitions in this context (inside a DEX file). I know I don't.
@jvg, can you elaborate?
js...@google.com <js...@google.com> #3
people who are looking at the bytecode in the dex to optimize their app through shrinking hopefully will learn the difference as string tables for method references between various dex files can account for quite a bit of disk space. but more importantly a definition is something you can analyze its code for where a reference you can't so the UI can be confusing without seeing the difference
js...@google.com <js...@google.com>
js...@google.com <js...@google.com>
rv...@mozilla.com <rv...@mozilla.com> #4
How about something like this?
I think having defined members be directly under the class node while references are nested in a group makes more sense.
Also note that the method refs have a
js...@google.com <js...@google.com> #5
sounds reasonable to me, thanks
js...@google.com <js...@google.com> #6
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 4
- Android Gradle Plugin 8.8.0-alpha04
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!
rv...@mozilla.com <rv...@mozilla.com> #7
Thanks for the update!
an...@google.com <an...@google.com> #8
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 2
- Android Gradle Plugin 8.8.0-alpha02
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!
an...@google.com <an...@google.com> #9
The fixes for this issue are now also available in:
- Android Studio Ladybug | 2024.2.1 RC 1
- Android Gradle Plugin 8.7.0-rc01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
This piece of code generates a
WrongConstant
Lint error saying:I'm actually passing
PackageManager.MATCH_DEFAULT_ONLY
, but I can't pass exactly that value in Kotlin, as thePackageManager.ResolveInfoFlags.of
expects a long, so I need to convert it, while in Java theint
is implicitly cast tolong
.Version of Gradle Plugin: 8.6.0
Version of Gradle: 8.10.0
Version of Java: 17