How to Get Rid of Incremental Annotation Processing Requested Warning

How to get rid of Incremental annotation processing requested warning?

There is a bug in kotlin-gradle-plugin version of 1.3.50 as @Necrontyr mentioned. Just downgrade the kotlin_version in build.gradle(Project) to 1.3.41.

kotlin compiler return this type of warning

To have incremental annotation processing using dagger and kapt, please try this configuration:

  • Kotlin version 1.3.60
  • Dagger version 2.24
  • remove any additional configs in Gradle build script related to incremental processing for dagger (for example arguments << ["dagger.gradle.incremental": "true"])
  • add following parameters to your gradle.properties:
    kapt.incremental.apt=true,kapt.use.worker.api=true,kapt.include.compile.classpath=false


Related Topics



Leave a reply



Submit