Status Update
Comments
ry...@gmail.com <ry...@gmail.com> #2
Correction to my code snippet -- because we still can't edit our posts -- I'm validating against GoogleIdTokenCredential.TYPE_GOOGLE_ID_TOKEN_CREDENTIAL
vi...@google.com <vi...@google.com> #3
Which Android build are you using? (e.g. AP4A.241205.013.A1)
Which device did you use to reproduce this issue?
Can you confirm if this issue is reproducible on a Pixel/Nexus device?
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report and screenshot to google drive and share the folder to android-bugreport@google.com, then share the link here.
ry...@gmail.com <ry...@gmail.com> #4
This is a lint error and not related to a particular device or Android build.
I'm using Android Studio Android Studio Ladybug | 2024.2.1 Patch 3 (Build #AI-242.23339.11.2421.12700392, built on November 22, 2024)
vi...@google.com <vi...@google.com>
bl...@google.com <bl...@google.com> #5
jb...@google.com <jb...@google.com>
da...@google.com <da...@google.com>
he...@google.com <he...@google.com>
ar...@google.com <ar...@google.com>
pa...@google.com <pa...@google.com> #6
Thanks for the report. It looks like the lint check sees the reference to GoogleIdTokenCredential
, but since this kind of resolves to GoogleIdTokenCredential.Companion
, the check was missing it. Importing the constants directly would also be missed by the lint check.
E.g.
import com.google.android.libraries.identity.googleid.GoogleIdTokenCredential.TYPE_GOOGLE_ID_TOKEN_CREDENTIAL
I will change the lint check to instead look for GoogleIdTokenCredential.createFrom
(or GoogleIdTokenCredential.Companion.createFrom
). I believe devs are supposed to use this method if dealing with either Google ID token type.
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 Meerkat Feature Drop | 2024.3.2 Canary 4
- Android Gradle Plugin 8.10.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!
Description
Lint fails with
Despite the implemented check for
GoogleIdTokenCredential.TYPE_GOOGLE_ID_TOKEN_SIWG_CREDENTIAL
(an implementation withGoogleIdTokenCredential.TYPE_GOOGLE_ID_TOKEN_CREDENTIAL
was also tested)Dependencies used