IntelliJ IDEA: Enable Annotation processors by default

Current IDE version: File | New Projects Setup | Settings for New Projects…, navigate to the compiler settings, annotation processing and enable this option before importing the project. Previous versions: File | Other Settings | Default Settings, navigate to the compiler settings, annotation processing and enable this option before importing the project.

Setting Explict Annotation Processor

To fix the error, simply change the configuration of those dependencies to use annotationProcessor. If a dependency includes components that also need to be on the compile classpath, declare that dependency a second time and use the compile dependency configuration. For example: annotationProcessor ‘com.jakewharton:butterknife:7.0.1’ compile ‘com.jakewharton:butterknife:7.0.1’ This link describes it in detail: https://developer.android.com/studio/preview/features/new-android-plugin-migration.html#annotationProcessor_config Relevant snippet … Read more

tech