Skip to content

Compatibility with older Kotlin versions #117

@qingshu-ui

Description

@qingshu-ui
kotlin {
    compilerOptions {
        // kotlin compatibility options
        apiVersion = KotlinVersion.KOTLIN_2_0
        languageVersion = KotlinVersion.KOTLIN_2_0
    }
}

Have you considered adding some compilation options to ensure compatibility with older Kotlin versions?

e: Pre-release declarations were found in dependencies. Please exclude the dependencies with such declarations and recompile with a release compiler, or use '-Xskip-prerelease-check' to suppress errors. Note that in the latter case the compiled declarations will also be marked as pre-release.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/build/generated/ksp/metadata/commonMain/kotlin/me/qingshu/onebot/app/model/AtRecordTable.kt:13:24 Package 'com.ctrip.sqllin.dsl.sql' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/build/generated/ksp/metadata/commonMain/kotlin/me/qingshu/onebot/app/model/AtRecordTable.kt:19:6 Package 'com.ctrip.sqllin.dsl.annotation' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/build/generated/ksp/metadata/commonMain/kotlin/me/qingshu/onebot/app/model/AtRecordTable.kt:21:17 Package 'com.ctrip.sqllin.dsl.sql.clause' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/build/generated/ksp/metadata/commonMain/kotlin/me/qingshu/onebot/app/model/AtRecordTable.kt:21:17 Package 'com.ctrip.sqllin.dsl.sql' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/build/generated/ksp/metadata/commonMain/kotlin/me/qingshu/onebot/app/model/AtRecordTable.kt:23:6 Package 'com.ctrip.sqllin.dsl.annotation' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
......
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/src/commonMain/kotlin/KoinModules.kt:20:15 Package 'com.ctrip.sqllin.dsl' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/src/commonMain/kotlin/KoinModules.kt:20:15 Package 'com.ctrip.sqllin.dsl' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/src/commonMain/kotlin/KoinModules.kt:20:20 Package 'com.ctrip.sqllin.dsl' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/src/commonMain/kotlin/KoinModules.kt:21:9 Package 'com.ctrip.sqllin.dsl' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
e: file:///C:/Users/17186/IdeaProjects/OneBotMultiplatform/examples/app/src/commonMain/kotlin/KoinModules.kt:21:9 Package 'com.ctrip.sqllin.driver' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions