enable Annotation Processors option in Android Studio 2.2

I’m trying to use java 8 in my project and for that I added the jack compiler.

After enabling jack I started having problems with libraries that use Annotation Processing and looking in the web I read that I need android studio 2.2 and com.android.tools.build:gradle:2.2.0-alpha6 to compile libraries that generate code from annotations.

  • Difference between android.app.Fragment and android.support.v4.app.Fragment
  • Can I set the home icon of my actionbar using styles.xml?
  • Display the current time and date in an Android application
  • How to get installed applications in Android and no system apps?
  • Android Studio Update 0.4.0 could not find buildConfig()
  • Can you use a LoaderManager from a Service?
  • I download Android Studio 2.2 preview 6 and converted my project to it. And after that I discovered that the apt gradle plugin is not supported anymore and then I needed to change every dependency that use apt to the use the new annotationProcessor option.


    apt "org.projectlombok:lombok:$rootProject.lombokVersion"


    annotationProcessor "org.projectlombok:lombok:$rootProject.lombokVersion"

    Now if I use “make project” the project is compiled without problems, but if I try to execute it I have errors with the code that should be generated by the annotations.

    Also when I open the project I receive a warning from the lombok plugin “Annotation processing seems to be disabled for the project”. When I open the project settings and go to “Build -> Compiler” I can’t find Annotation Processors.

    So, my question is: How can I enable Annotation Processors in Android Studio 2.2? This feature was disabled? If yes, how can I generate the code from annotations?

    I’m making a PullRequest to change the project to compile with Java8, you can check the PR here: https://github.com/jonathanrz/myexpenses-android/pull/57

    Related posts:

    How to send GCM messages to multiple devices at a time
    Can we enable pie (i.e. Position Independent Executables) for shared libraries in android-ndk r10c?
    Serialization / Deserialization & Proguard
    Layout animation not working on first run
    How do you version code in Android without compiler warnings?
    “IntentReceiver components are not allowed to register to receive intents” when ...
  • How to use interface to communicate between two activities
  • how to get android gradient center light effect?
  • android intent for sdcard ready
  • How to format a phone number using PhoneNumberUtils?
  • Tracking progress of multipart file upload using OKHTTP
  • Any way around awful SecretKeyFactory performance with LVL and AESObfuscator?
  • 8 Solutions collect form web for “enable Annotation Processors option in Android Studio 2.2”

    Close the project. In the “Welcome to Android Studio” dialog click “Configure” in the bottom right corner.


    Settings > Build, Execution, Deployment > Compiler > Annotation Processors. Tick ‘Enable annotation processing’.

    If that does not work. Delete the project from “Welcome to Android Studio” dialog and open from new.

    Worked for me.

    1. Close all your AndroidStudio Project
    2. See enter image description here

    3. Click Configure–>Setting
      enter image description here


    and after do: File > Invalidate Caches / Restart... > Invalidate and Restart

    You can enable Annotation Processors without closing your project in Android Studio 2.3:

    File -> Other Settings -> Default Settings

    enter image description here

    Build, Execution, Deployment -> Compiler -> Annotation Processors -> 
    Enable annotation processing.

    enter image description here
    Don’t forget to clean, build, invalidate and restart after that.

    Open compiler.xml in the .idea folder. I had the following:

      <profile default="true" name="Default" enabled="false">
        <processorPath useClasspath="true" />

    I simply changed enable to true and re-opened project.

    Adding to @Jacques Koorts and @mtrakal

    If you can’t get to the “Welcome to Android Studio” screen. Try File -> Close Project instead of clicking the X icon. Then you’ll get the “Welcome to Android Studio” screen and you’ll see the gear in the bottom right. Follow the accepted answer after that and possibly the cache invalidation.

    1. Close your project.
    2. Settings > Build, Execution, Deployment > Compiler > Annotation Processors. Check ‘Enable annotation processing’.
    3. Open your project.
    4. File > Invalidate Caches / Restart… > Invalidate and Restart

    Wait for the process completely, then everything will be fine.

    Stuped but worked for me, try to change the library version in my case I upgraded to 1.4.1

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.