2

This is the error notification I'm getting This is the Error

And when I go to the described Location I cant find it

enter image description here

Sunder R
  • 1,074
  • 1
  • 7
  • 21
  • Have a look here...[Enabling Annotation Processor for Android 2.2](http://stackoverflow.com/questions/38642712/enable-annotation-processors-option-in-android-studio-2-2) – Gurvinder Singh Mar 09 '17 at 10:26
  • not working for me, I have already seen that thread – Sunder R Mar 09 '17 at 10:40
  • Possible duplicate of [Lombok Requires Annotation Processing](https://stackoverflow.com/questions/38911888/lombok-requires-annotation-processing) – Nawrez Nov 12 '17 at 12:10

6 Answers6

11

You have to close the project and access to the default preferences from the "Welcome to Android Studio" page and you will can find the "Annotation Processors" section.
More info at other questions about Android 2.2 (for example enable Annotation Processors option in Android Studio 2.2) where you can also find other tips like removing al projects from welcome page, using invalidate cache and restart and so on.
Anyway it seems that Lombok APT properly runs regardless of the boring message. The bug has been already issued at https://github.com/mplushnikov/lombok-intellij-plugin/issues/264.

I finally have found the tweak!
It seems that the problem is when you create the project before enabling annotation processors.
Exit from Android Studio and edit the file <your project folder>/.idea/compiler.xml.
You should find:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
    <component name="CompilerConfiguration">
        ...
        <annotationProcessing>
            <profile default="true" name="Default" enabled="false">
                <processorPath useClasspath="true" />
            </profile>
        </annotationProcessing>
    </component>
</project>

You should set enabled to true and the boring message disappears!

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
    <component name="CompilerConfiguration">
        ...
        <annotationProcessing>
            <!-- This is the line where to set enabled to true  -->
            <profile default="true" name="Default" enabled="true">
                <processorPath useClasspath="true" />
            </profile>
        </annotationProcessing>
    </component>
</project>
Community
  • 1
  • 1
3

You can find the option under File -> Other Settings -> Default Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors

Tudor
  • 1,510
  • 1
  • 18
  • 17
1
  1. Android Studio - File - Close Project
  2. Configure - Settings - Build, Execution, Deployment - Compiler - Annotation Processors - Enable annotation processing.
  3. Open Project - Build - Rebuild Project.
Zon
  • 18,610
  • 7
  • 91
  • 99
0

I was like this, you can find my way to set up

enter image description here

Zero
  • 2,764
  • 1
  • 17
  • 20
0

Copy from @Tudor Pop amswer This is the right answer android-studio-2-3. You can find the option under File -> Other Settings -> Default Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors

Breton F.
  • 177
  • 1
  • 6
0

For me in Android Studio 3.4.x works by enabling annotation processing through the following steps:

  1. File - Close Project
  2. Configure -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors - Enable annotation processing

Then you need to add the compiler.xml file to the .idea folder in the project folder. This is what compiler.xml should look like:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="CompilerConfiguration">
    <annotationProcessing>
      <profile default="true" name="Default" enabled="true" />
    </annotationProcessing>
  </component>
</project>
SDD
  • 21
  • 3