I am getting this error on AS after including Kotlin's annotation processor support (kapt
) with apply plugin: 'kotlin-kapt'
in my app's build.gradle
Folder .../app/build/generated/source/kaptKotlin/
Folder .../app/build/generated/source/kaptKotlin/
3rd-party Gradle plug-ins may be the cause
I just need to disable this red warning (which is now preventing me from building the app), as I've looked into the bug report itself and this answer and found out that the generated build folders from kapt
are considered 'invalid' to Android Studio.
I tried to uncheck some related warnings in AS's Settings -> Inspections
but could not find the right one to disable this specific one.
If I don't include apply plugin: 'kotlin-kapt'
, I get this runtime error:
Cause: app: Original kapt is deprecated. Please add "apply plugin: 'kotlin-kapt'" to your build.gradle.
How may I disable this warning?