Status Update
Comments
ga...@google.com <ga...@google.com> #2
Dany, I believe this is fixed in a new release of safeargs ?
ri...@google.com <ri...@google.com> #3
Safeargs still needs AndroidComponentsExtension
to get the applicationID from the variants (7.2.0-alpha05
remove the extension?
ri...@google.com <ri...@google.com> #4
it moved to a different package : com.android.build.api.variant
ze...@google.com <ze...@google.com> #5
Safeargs still relies on AGP 4.2
. We need some of the BaseVariant
APIs to have replacements before we can upgrade to 7.0+
(
ga...@google.com <ga...@google.com> #6
The BaseVariant API are deprecated but still available in 7.x, so you should be able to release a newer version that uses the new package and still relies on the old API you require. Or am I missing something ?
sg...@google.com <sg...@google.com> #7
I'll try updating to the latest stable to see if we run into any issues. I can check to make sure changing the package name in 7.2.0-alpha05 works, but we would need it to be stable before we could do a release with this change.
ga...@google.com <ga...@google.com> #8
FYI this also breaks the latest Studio (2021.1.1 Beta 5)/AGP (7.1.0-beta05) beta where com.android.build.api.extension.AndroidComponentsExtension
has been removed.
Is there a particular reason why
As it stands, no one can upgrade either AGP/Studio Beta or Canary and take advantage of fixes in the latest versions because Navigation still uses the old AGP APIs.
ri...@google.com <ri...@google.com> #9
Was this fixed in Studio 2021.1.1 RC 1?
sg...@google.com <sg...@google.com> #11
This will be fixed in the Navigation Safe Args 2.5.0-alpha01
and 2.4.1
versions. You can follow the
ze...@google.com <ze...@google.com> #12
Thank you! 2.4.1 is at least two weeks out (possibly 4, if I'm not mistaken).
I applaud the AGPs team decision to stick to the new APIs though. Hopefully its not too long before Navigation fixes this.
ri...@google.com <ri...@google.com> #13
So we are talking mid february ?
ga...@google.com <ga...@google.com> #14
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 Dolphin Canary 5 (2021.3.1.5)
- Android Gradle Plugin 7.3.0-alpha05
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
the underlying problem was that the user had a custom (old) version of R8 that was used.
The ability to provide people with an more recent or even custom R8 version is really useful for the r8 team, but it will probably also give more errors like this.
Is it possible to have a check in gradle and see if the R8 version is up to date, and provide a warning if not?