Status Update
Comments
pe...@google.com <pe...@google.com>
ey...@gmail.com <ey...@gmail.com> #2
I've submitted a fix for this, which should (I hope) make it into Jellyfish Canary 12. There's a relatively straightforward workaround, which is to explicitly declare the version of the com.android.tools.build:gradle
artifact in all build files -- in the screenshot, your project has a versioned classpath
dependency, but also an unversioned one, and it's that unversioned one that tripped up the AGP Upgrade Assistant. Since there is that workaround of making sure that all the classpath dependencies on com.android.tools.build:gradle
have an explicit version, we probably won't patch this for Iguana, I'm afraid.
Thanks very much for the report!
je...@google.com <je...@google.com>
hm...@google.com <hm...@google.com> #3
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 Jellyfish | 2023.3.1 Canary 12
- Android Gradle Plugin 8.4.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!
ed...@gmail.com <ed...@gmail.com> #4
hm...@google.com <hm...@google.com> #5
te...@gmail.com <te...@gmail.com> #6
same problem in latest koala, AGP upgrade assistant never opens
Please could you open a new issue, and upload enough details about your project to be able to investigate or (ideally) reproduce the problem? Thank you!
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.