Skip to content

Migrate from KAPT to KSP #1235

Closed as duplicate
Closed as duplicate

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

Activity

  1. greenrobot-team commented on Mar 16, 2026

    @greenrobot-team
    Member

    This is a duplicate of #1075.

    Edit: note that the README has instructions on how to set up Android projects that use Android Gradle Plugin 9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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