Fixed
Status Update
Comments
ra...@google.com <ra...@google.com>
je...@google.com <je...@google.com>
mi...@google.com <mi...@google.com> #2
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 3
- Android Gradle Plugin 8.8.0-alpha03
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!
an...@google.com <an...@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 5
- Android Gradle Plugin 8.8.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
Reproducer:https://github.com/vanniktech/playground/pull/247
Turn on:
android.enableBuildConfigAsBytecode=true
and then this test can't be compiled:Execute
./gradlew testDebug
and you will see the compile error:To workaround this in the
defaultConfig
block I can add the following:buildConfigField("String", "WORKAROUND", "\"foo\"")
this will yield aBuildConfig
that can be resolved.Regardless of whether I have
buildConfigFields
declared or not, when usingenableBuildConfigAsBytecode
the BuildConfig should be resolvable in the Unit Tests.