AGP 8.0
-
[Android] Build Type 'release' contains custom BuildConfig fields, but the feature is disabled.Android 2023. 9. 25. 11:09
Build Type 'release' contains custom BuildConfig fields, but the feature is disabled. => AGP 8.0에서 BuildConfig 사용 시 에러 => AGP(Android gradle plugin) 8.0부터 BuildConfig는 기본적으로 비활성화되며 AGP 9.0부터는 사라진다. android { buildFeatures { buildConfig = true } ... } => 앱수준 그래들 설정에서 위와 같이 설정하면 임시로 BuildConfig를 사용 할 수 있다.