Hey everyone. I am having a problem where included...
# multiplatform
r
Hey everyone. I am having a problem where included modules indexes are not found in android sources sets (androidMain & androidTest). So I just get unresolved references for any included module when I try to access it in the andorid sources sets. They work just fine in desktop sources sets and common. If I manually include the imports the project compiles perfectly with no issues. Just that auto complete does not work. This started happening after I updated my Kotlin version to 1.6.21. I have attached the build.gradle for both modules in this link
Did some more testing and it's definitely the Kotlin version. Reverting to 1.6.10 everything works. With 1.6.20 and 1.6.21 the issue reappears. I'll try to reproduce this in a new project and open an issue
m
This may be related to the issues discussed here https://kotlinlang.slack.com/archives/C3PQML5NU/p1652224566469179 and in the following virtual meeting.
r
Thanks Michael. Definitely seems to be related. Went searching some more after reading the thread and found the solution Settings this
Copy code
kotlin.mpp.hierarchicalStructureSupport=false
in
gradle.properties
seems to fix the issue for now.