Status Update
Comments
ga...@google.com <ga...@google.com> #2
This upgrade assistant change will add android.defaults.buildfeatures.resvalues=true
to the gradle.properties
file in AGP 9.0.0, and there will be a separate refactoring option to move the flag (when necessary) to the build files (DSL).
sp...@google.com <sp...@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 Ladybug Feature Drop | 2024.2.2 Canary 6
- Android Gradle Plugin 8.8.0-alpha06
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!
ag...@google.com <ag...@google.com> #4
Fix uploaded:
sp...@google.com <sp...@google.com> #5
Thanks, Mads!
Once Kotlin 1.6.20 is released, I'll make it the minimum allowed version for projects applying the kotlin-android-extensions
plugin for AGP 7.3+.
ag...@google.com <ag...@google.com> #6
I have confirmed that the change has landed upstream in the 1.6.20 branch. Scott, over to you. Do you want to keep this bug open for your tracking or should we close?
sp...@google.com <sp...@google.com> #7
Thanks. Yes, I'll keep it open to track the work on the AGP side of requiring a minimum Kotlin version of 1.6.20 when the kotlin-android-extensions
plugin is applied.
sp...@google.com <sp...@google.com> #8
As of version 7.3.0-alpha09
, AGP requires a minimum Kotlin version of 1.6.20 when the kotlin-android-extensions
plugin is applied.
de...@google.com <de...@google.com> #9
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 9 (2021.3.1.9)
- Android Gradle Plugin 7.3.0-alpha09
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
If a project using the specifies the , kotlin compilation fails with
kotlin-android-extensions
plugin removes thepackage
attribute from the sourceAndroidManifest.xml
file and insteadnamespace
via the DSLUnresolved reference
errors.To repro, run
./gradlew :app:assembleDebug
with the attached project.This appears to be a bug in the (deprecated)
kotlin-android-extensions
plugin, not AGP.