Fixed
Status Update
Comments
ra...@google.com <ra...@google.com>
je...@google.com <je...@google.com>
an...@google.com <an...@google.com> #3
Look like this was introduced by the fix for
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.