Fixed
Status Update
Comments
ga...@google.com <ga...@google.com> #3
The issue is that AGP ends up loading com.fasterxml.aalto.stax.InputFactoryImpl
as that's returned by XMLInputFactory.newFactory()
.
Without this library on the buildscript classpath we end up loading com.sun.xml.internal.stream.XMLInputFactoryImpl
.
ga...@google.com <ga...@google.com> #4
Jerome, I remember you were looking into XML parsers. Should we always be using XMLInputFactory.newDefaultFactory()
?
je...@google.com <je...@google.com>
je...@google.com <je...@google.com> #5
mi...@google.com <mi...@google.com>
an...@google.com <an...@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 Iguana | 2023.2.1 Canary 11
- Android Gradle Plugin 8.3.0-alpha11
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
Context: Kotlin compiler depends on IDEA platform, and it is now trying to update to IDEA 21.3. This version of IDEA SDK depends on
com.fasterxml:aalto-xml:1.3.0
.Having
com.fasterxml:aalto-xml:1.3.0
in the classpath causes resource compilation to fail in AGP. Using the attached project and running./gradlew asDeb
fails with:We should investigate the root cause in order to unblock IDEA SDK update in the Kotlin compiler.