I am working on KMP project and I have a problem with accessing to my shared module source files from app
module.
Android studio complains about everything, what are related to the commonMain source files (shared module), and says Unresolved reference: exampleVariableFromSharedModule
and intellisence is also lost.
When I run the project, everything works fine and there is no compilation issues at all.
I'm trying to fix that issue almost hole week.
Tried:
- cleaning the project,
- invalidate & restart
- used different versions of Kotlin.
- open the project in two different versions of android studio (4.1.1 & 4.2 preview) with no luck.
- removed the shared module from
settings.gradle
&build.gradle
synced, then restore. - File -> Manage IDE Settings -> Restore Default Settings
- Disable / enable kotlin plugin
- removed .idea and all build folders
Last thing that I tried:
Uninstalled all Android Studios and its related folders, downloaded it again but still getting the same problem.