1

This is my project structure. I use the Gradle Kotlin DSL. The problem is that "My app module is not Gradle-based", but it has the build.gradle.kts file. I added also the buildSrc to the app module, but it did not help.

Project structure as:

enter image description here

1 Answer 1

2

How does your settings.gradle.kts look like?

It should contain something like this:

include("app")

This tells gradle on the root module (top level) that there is a submodule it needs to build as well.

I also see a file settings.gradle.txt in you project structure. This looks like a mistake to me, you can probably delete it?

Regarding buildSrc: The documentation states:

In a multi project build, there can only be one buildSrc directory which must be located in the root directory

https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:multi_project_and_buildsrc

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.