Moving id "kotlin-kapt" or id("kotlin-kapt") to the bottom of plugins{} in the app/build.gradle will make it work fine