Fixed
Status Update
Comments
ya...@google.com <ya...@google.com>
tn...@google.com <tn...@google.com>
tn...@google.com <tn...@google.com> #2
Thank you for the report and the supplied dump with the reproduction. I can confirm that the NPE is also present on HEAD, and I will look into it.
Quite a few of the class files in the dump has malformed inner-class attribute, where R8 reports e.g.:
Info in /tmp/tmpo67ucguh/program.jar:ofifmwrrhhmodsc/ψξψξψξξ.class:
Malformed inner-class attribute:
outerTypeInternal: ofifmwrrhhmodsc/ψξψξψξξ
innerTypeInternal: ofifmwrrhhmodsc/ψξψξψξξ$ψξξψξξξ
innerName: ψξψξψξξ$ψξξψξξξ
These are ignored, so they should not be the reason for the NPE, but something to also look into.
Description
The explanation provided by the AccessibilityDetector lint check suggests an outdated approach (using
tools:ignore=“ContentDescription”
).It is also a different approach from what's documented today in the url linked in that lint check which states:
"If your UI includes graphical elements that are used for decorative effect only, set their descriptions to "@null". If your app's minSdkVersion is 16 or higher, you can instead set these graphical elements' android:importantForAccessibility attributes to "no"."
I believe the check's explanation is misleading and should be updated.