Status Update
Comments
pe...@google.com <pe...@google.com>
ey...@gmail.com <ey...@gmail.com> #2
This also affects Hedgehog RC 1
je...@google.com <je...@google.com>
hm...@google.com <hm...@google.com> #3
Does this reproduce with AGP 8.3.0-alpha09 and above? The XML parser was recently updated.
ed...@gmail.com <ed...@gmail.com> #4
Does this reproduce with AGP 8.3.0-alpha09 and above? The XML parser was recently updated.
The com.android.tools:sdk-common:31.3.0-alpha09
artifact appears to still require Xerces from what I can tell - see
hm...@google.com <hm...@google.com> #5
Yes, that's the latest available version of xerces 2.12.2
te...@gmail.com <te...@gmail.com> #6
Does AGP need xercesimpl dependency? Gradle on the other hand does not need it and uses JDK implementation
hm...@google.com <hm...@google.com>
hm...@google.com <hm...@google.com> #7
I see that the issue still persists even with the latest version of xerces. I will look into moving to using JAXP instead of relying on xerces in AGP.
hm...@google.com <hm...@google.com> #8
We have removed xerces as a dependency in AGP, feel free to try out the change once it's out in 8.3.0-alpha12
ey...@gmail.com <ey...@gmail.com> #9
Will this be back ported to Hedgehog?
hm...@google.com <hm...@google.com> #10
Sorry for the delay in the response. We are not currently planning to pick this back to Hedgehog because:
- the impact does not seem too great
- and there is a workaround that can be applied and works
- only very critical bug fixes are ported back
I will review the impact of it with the team again.
an...@google.com <an...@google.com> #11
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 Iguana | 2023.2.1 Canary 12
- Android Gradle Plugin 8.3.0-alpha12
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
DESCRIBE THE ISSUE IN DETAIL:
For instance, trying to use v0.49.0 of the Gradle Versions plugin (the version that fixes this issue) with Gradle 8.4 and the most recent version of AGP (8.3.0-alpha07) still fails with the following exception:
(seehttps://pastebin.com/NA8CFmW3 for a full log)
Running the this build scan and ( ben-manes/gradle-versions-plugin#814 ) for more info
buildEnvironment
task reveals that AGP uses an old XML parser, Xerces - seeSTEPS TO REPRODUCE:
Use Gradle 8.4 + AGP 8.3.0-alpha07
Add v0.49.0 of the Gradle Versions plugin :
Run the
dependencyUpdates
task with the--info
and--stacktrace
flagsNote the exception:
A workaround is to add the following properties to the
gradle.properties
file:ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.