Skip to content

Migrate from KAPT to KSP #1235

@stleusc

Description

@stleusc

Is there an existing issue?

Use case

Android Gradle plugin 9.0 introduces built-in Kotlin support and enables it by default. That means you no longer have to apply the org.jetbrains.kotlin.android (or kotlin-android) plugin in your build files to compile Kotlin source files. With built-in Kotlin, your build files are simpler and you can avoid compatibility issues between AGP and the kotlin-android plugin.

KAPT plugin is not compatible with this and without it no code is generated.

Proposed solution

see https://developer.android.com/build/migrate-to-ksp

Alternatives

Temporary workaround is use a legacy kapt plugin from Google

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions