Android Eclipse - Cannot see annotation processing option
Asked Answered
W

5

12

I am unable to fine the option to set annotation processing in my Eclipse preferences. enter image description here

Not sure since when am I getting this problem but surely it has started to occur after I updated eclipse last. I also tried pasting the annotations.jar file in tools/support folder but to no good.

Kindly help.

TIA

Wyattwyche answered 13/7, 2014 at 16:33 Comment(0)
S
23

Installing

Programming Languages > Eclipse Java Development Tools

may enable it again.

enter image description here

Suzannsuzanna answered 18/8, 2014 at 13:15 Comment(2)
This worked for me on Mac. Good synthesis for valuable information following link "Try This" given by Big O. Thanks.Mcmillon
This should be the accepted answer. Then you don't have to reinstall Eclipse.Cannelloni
D
2

It seems Google removed the Annotation Processor option from project properties in the ADT bundle. We are tracking the problem in this AndroidAnnotations issue. The current workaround for this is not installing the bundle, but downloading a standalone Eclipse distribution and adding the ADT plugin to that.

Dm answered 14/7, 2014 at 17:52 Comment(2)
@Dm Your answer is based on same issue I linked in my answer. It's part of ADT 23 problem.Angi
Thanks, Downloaded the non-bundled Eclipse. Am back to work now... Cheers mate!!Wyattwyche
B
2

Updating Eclipse Java Development Tools worked for me. Try This

Bainbrudge answered 22/7, 2014 at 2:47 Comment(0)
A
0

If annotations.jar is missing, it maybe ADT 23 related problems.
Check this.

Update eclipse with Android Development tools 23

Google response:
...
and copy over the following files:

tools/hprof-conv
tools/support/annotations.jar
tools/proguard


(Added) If its ADT bundle problem (part of ADT 23 related problem),
this part is for you. (Linked above)

Google response:
...
This is a packaging bug. The entire proguard file is missing. We'll have an update asap, but until then just copy it over from a previous version of the tools:
...
Edit: with the latest ADT release, the bundle should now work with auto-update, so install these new versions:

linux 64 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip
linux 32 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
mac: http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
win32: http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
win64: http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip

Don't try to upgrade from previous version because it doensn't work at all. If you have got problems with zipalign, it's now under platform-tools and no more under tools/ so you can do a symbolic link or just copy it into the expected folder.

or use "not-bundled" Eclipse.


ADT23 problem related links
Issue 72400 (merged into 72419) getDefaultProguardFile no longer returns valid path using build SDK tools 23
Issue 72419 Proguard not installed with SDK tools rev. 23

Angi answered 13/7, 2014 at 18:2 Comment(1)
This has nothing to do with the problem.Dm
S
0

Copied APTDemo.jar from http://www.eclipse.org/jdt/apt/APTDemo.jar in the lib folder and I can see the option in my compiler preferences. I will investigate later, fixed my problem for now.

Strapping answered 17/7, 2014 at 16:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.