After I upgrade my gradle gradle-5.4.1 to gradle-6.3, I got an error like 'buildSrc' cannot be used as a project name as it is a reserved name. I'm using buidleSrc for Gradle Dependency Management(link). I dont know how to solve this issue please help on this.
tldr: Remove "buildSrc" from settings.gradle
/ settings.gradle.kts
. With gradle update, "buildSrc" is now reserved project name.
If you are looking an answer for Android, this should be helpful:
settings.gradle
/ settings.gradle.kts
settings.gradle.kts
might look like this (syntax will be different for settings.gradle
)
include(":app")
rootProject.name = "yourapp"
include(":moduleA")
include(":buildSrc")
include(":moduleB")
include(":moduleC")
remove the line that includes "buildSrc" like:
include(":app")
rootProject.name = "yourapp"
include(":moduleA")
include(":moduleB")
include(":moduleC")
and rebuild project.
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