I have a project with five modules, and this project is a monorepo. Inside the login feature module, I have a fragment that uses a layout provided by the core module.
To use this layout in my fragment, I set it as: R.layout.my_layout
, remembering that this layout comes from another module and works normally.
In this project, I need to update the following: JDK from 11 to 17, Kotlin to 1.9.0, and Gradle to 8.9.
However, the namespace
is now required in the Gradle file. When I define it, I am required to specify the package name of the core module like this:
br.com.modulecore.R.layout.my_layout
.
I need to do this in every place in my project.
Is there a way to solve this without needing to declare the package name explicitly?