Advertisement

Responsive Advertisement

Upgrade Kapt to ksp in Android Studio


There are certain steps to remove Kapt or update kapt to ksp. 


 1. If you want to remove kapt to ksp or update to ksp, you have to remove kapt first from the plugins .

 2. Now some dependency will show your error because of kapt plugins , now comment or remove those dependency.
like :-

// kapt(libs.androidx.room.compiler)

3. Now , you''ll add "com.google.devtools.ksp" in plugins app based gradle .
also change or update or add "com.google.devtools.ksp" apply true and sync the gradle.


4. Now,  Uncomment dependency or rewrite the dependency and replace kapt to ksp and sync the gradle.

ksp(libs.androidx.room.compiler)



Post a Comment

0 Comments