Hello, having Android studio IDE errors but builds are working fine. Here's the structure:
Repository1 is composed of
• Android module
:library
• A Kotlin MP module targeting iOS and Android.
:core
.
• The Android module
:library
is dependent on
:core
. In
build.gradle (library)
, I added
api project(":core")
to the dependencies.
Repository2 is composed
• Android App
:app
• Common Kotlin MP module targeting iOS and Android
:common
• The
:app
is dependent on
:library
. In
build.gradle (app)
I added
implementation linkto:Library
• The
:common
module is dependent only on
:core
. In
build.gradle (common)
I added
api linkto:core
.
The build works fine but I am getting this IDE error:
"Cannot access class X, Check your module classpath for missing or conflicting dependencies". X is a class in
:core
Any idea on how to solve this as the IDE errors are very annoying...
Kotlin 1.3.72