After I added this piece of code into settings.gradle.kts the BuildConfig file is not being generated.
pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}
rootProject.name = "Banking"
include(":app")
How can I make it be generated again? But I need to keep the code inside settings.gradle.kts.
Edit: I have already tried Invalidating caches and reloading the project.
When I faced this problem, adding the following code to the build.gradle
of the app
level helped me:
android {
buildFeatures {
buildConfig = true
}
}
Or you can add the following the line in the gradle.properties
file at the root project of your build:
android.defaults.buildfeatures.buildconfig=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With