Commit bc4c5bc
committed
Build: Enable build config build feature for app
This is an AGP version '8.0' breaking change that changes the build
option default values, see build failure below:
------------------------------------------------------------------------
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':stories'.
> Failed to notify project evaluation listener.
> com.android.builder.errors.EvalIssueException: Build Type 'debug'
contains custom BuildConfig
fields, but the feature is disabled.
> Could not get unknown property 'release' for SoftwareComponent
container of type org.gradle.api.internal.component
.DefaultSoftwareComponentContainer.
------------------------------------------------------------------------
> Task :app:compileDebugKotlin FAILED
e: /Users/.../app/src/main/kotlin/org/wordpress/aztec/demo/
MainActivity.kt: (680, 21): Unresolved reference: BuildConfig
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner
.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
------------------------------------------------------------------------
Explanation: "Starting with AGP 8.0, the default values for these flags
have changed to improve build performance. AGP 8.0 doesn't generate
'BuildConfig' by default. You need to specify this option using the DSL
in the projects where you need it."
For more info see: https://developer.android.com/build/releases/
gradle-plugin#default-changes1 parent 1970f75 commit bc4c5bc
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments