Elka

    Elka

    2 years ago
    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
    Liliia

    Liliia

    2 years ago
    Could it be that you are using Flutter? There is a related bug.
    Elka

    Elka

    2 years ago
    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?