Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error for Lombok plugin on Android Studio #264

Open
dsjstc opened this issue Jul 25, 2016 · 11 comments

Comments

@dsjstc
Copy link

commented Jul 25, 2016

Just updated the Lombok plugin to 0.12.15 in Android Studio 2.1. I get the following misleading error at startup. AFAIK, Android Studio 2.1 always has annotation processing enabled. There is certainly no checkbox for it in the compiler settings.

Lombok Requires Annotation Processing
Annotation processing seems to be disabled for the project "AtixPos".
For  plugin to function correctly, please enable it under
"Settings > Build > Compiler > Annotation Processors"
Click on this notification to go to Settings now. (show balloon)
@dsjstc

This comment has been minimized.

Copy link
Author

commented Jul 25, 2016

More meaningful title.

@alexejk

This comment has been minimized.

Copy link
Collaborator

commented Jul 26, 2016

So what you are saying is that Android Studio has different configuration pages compared to upstream IntelliJ?

I personally do not use Android studio so this did not even occur to me that they would change so much. As for "always enabled" - our check is done through APIs of IDEA to check if it's enabled or not - and if you are getting the warning it would seem that this is not enabled, at least not in the IDEA standard way.

@dsjstc

This comment has been minimized.

Copy link
Author

commented Jul 26, 2016

The pages are indeed different. Here's a screenshot of the Android Studio compiler settings. NB the complete lack of subpages.

I will post a bug against Studio too. Are you able to easily tell me what the API is that you use to test enabled?

@alexejk

This comment has been minimized.

Copy link
Collaborator

commented Jul 27, 2016

Interesting indeed. We are looking at CompilerConfiguration.getAnnotationProcessingConfiguration() for all modules in the project to check if it's enabled or not.

@dsjstc

This comment has been minimized.

Copy link
Author

commented Jul 27, 2016

@kamilZ

This comment has been minimized.

Copy link

commented Jun 13, 2017

I found it on:
File > Other Settings > Default Settings > Build, Execution, Deployment > Compiler > Annotation Processors > Check "Enable annotation processing"

@fernandospr

This comment has been minimized.

Copy link

commented Sep 9, 2017

@kamilZ I have enabled it, however the error message is still shown when opening Android Studio.

@wolkenschieber

This comment has been minimized.

Copy link

commented Dec 3, 2017

The error message still appears on Android Studio 3.0.1.

As mentioned by @kamilZ, the setting can accessed through Other Settings. But even with enabled option, the error persists.

Is there some additional name to be set?

@akramul-hasan-m4

This comment has been minimized.

Copy link

commented Apr 4, 2019

Problem is alive with android studio 3.3.2 and lombok version: 0.24-2018.2

lombok
)

@akramul-hasan-m4

This comment has been minimized.

Copy link

commented Apr 20, 2019

Finally i found a solution , it is 100% works for me.

Setting for all projects ( new and old project) :

  1. Go to File -> Other Settings -> Settings for new projects -> Build, Execution, Deployment -> Compiler ->Annotation Processors
  2. Check, Enable Annotation Processing
  3. Click Apply
  4. Restart Your Android studio.

I Have Existing Project, What can I do?

Some Extra work for old project :

  1. Go to your project folder then delete yourProject.iml , app.iml file and .idea folder
  2. Then re-import your project

Hope your problem will solve

@mplushnikov

This comment has been minimized.

Copy link
Owner

commented Apr 22, 2019

@akramul-hasan-m4 Thank you for your suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.