Fixed
Status Update
Comments
ra...@google.com <ra...@google.com>
je...@google.com <je...@google.com>
mi...@google.com <mi...@google.com> #2
Actually, there was an error message, but "run" just didn't work, although I could autocomplete to the value "merge-only-attributes", so it seemed legitimate.
an...@google.com <an...@google.com> #3
do you have an example project that reproduces the error ?
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.