Ask Your Question

Revision history [back]

You can eliminate files generated by KAPT (Kotlin Annotation Processing Tool) and KSP (Kotlin Symbol Processing) in Android Studio by following these steps:

  1. Open your project in Android Studio.

  2. Navigate to the "Project" view in the "Project" pane on the left-hand side.

  3. Expand the "app" module.

  4. Right-click on the "build" folder and select "Show in Explorer" (Windows) or "Reveal in Finder" (Mac).

  5. In the file explorer window that opens, delete the following folders:

  • "generated"

  • "kapt"

  • "ksp"

  1. Return to Android Studio and rebuild your project. The KAPT and KSP-generated files should be removed, and the next time you rebuild the project, new files will be generated.

Note that deleting these files may cause errors or warnings in your project, so be sure to test your app thoroughly after deleting them.