https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

Elka

06/10/2020, 11:00 AM
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
l

Liliia

06/10/2020, 11:16 AM
Could it be that you are using Flutter? There is a related bug.
could be related... I am using maven-publish to publish the
:library
and
:core
@jw I have the also the same problem when assigning the
SqliteDriver
, from the
:app
module. Any workarounds or ideas why this is happening?
2 Views