google/secrets-gradle-plugin

BuildConfig not accessible in kotlin files

hugorplobo opened this issue · 1 comments

Hi, I have my gradle and local.properties files like this:

image
image
image

When I try to access BuildConfig.apiKey in my kotlin files, I get an Unresolved reference, but in the Android Manifest it works:

image

Please, what am I doing wrong?

Resolved by adding buildConfig = true in buildFeatures.