I have stuck in multiplatform + android instant ap...
# multiplatform
p
I have stuck in multiplatform + android instant app module setting. I have 4 modules as of now. 1. Common Module 2. Feature Module which also serves as platform module with
kotlin-platform-android
3. App Module 4. Instant App Module https://gist.github.com/PrashamTrivedi/7e0837756a6b6e0503e9eb26b739fe0c Here is my stripped down gradle setup. Problem is: Common data is not considered as module. What am I doing wrong?
q
What’s the actual error message ?
p
No error message. 😟 Sync and build completes fine. Studio is not recognizing common module as a legitimate module.
Package directory should show blue, and with flattened package. like
src/main/com.mycompany.myapp
. Studio shows
src/main/com/mycompany/myapp
q
Oh I see. I noticed you’ve renamed your gradle files from the usual
build.gradle
to something more expressive. This is most likely the issue. Do you have something like this in your settings.gradle ?
Copy code
void rename_recursively(project) {
    project.buildFileName = "${project.name}.gradle"
    project.children.each { child -> rename_recursively(child) }
}

rootProject.children.each { project -> rename_recursively(project) }
p
I didn't rename my gradle files. If you're referring the gist as it is. Try replacing
_
to
/
I wrote filenames with
_
because gist doesn't allow me to have /.
q
Ok, then sorry I don’t have more leads on your problem at the moment.
p
Ok, then sorry I don’t have more leads on your problem at the moment.
Not an issue. From what you have pointed out earlier, I have updated gist for more clarity.
I will try with IntelliJ instead of Android Studio for creating Multiplatform projects. Let's see if I can get any indication for what I am doing wrong
q
Ah ! Good catch, that happened to me as well 🙂