So, seeing that the new Android L is out, I said I should give it a try. I installed the new ADT update from SDK tools and then from the updates. After Eclipse restart, I get the error that Android Dependencies failed to load because \android-sdk\tools\support\annotations.jar cannot be found.
I checked the folder and it does not have the file.
Well, I said to myself that maybe the ADT update didn't go well so seeing that the new eclipse 4.4 is out I thought I could do a fresh install. So downloaded eclipse 4.4, installed the ADT tools and android sdk... and I get the same error.
Any ideas on how to fix this ?
Uninstall/install Support library didn't help, so I did this:
Found ..\android-sdk\extras\android\support\annotations\android-support-annotations.jar
and copied it to ..\android-sdk\tools\support\annotations.jar
The problem is gone since then. Doesn't look as incredibly awesome solution but at least now I can build my project in Eclipse.
A temporary solution from someone at google has been posted on the issue tracker: http://code.google.com/p/android/issues/detail?id=72419#c12
Please wait for an updated version within a day or two. Until then, your workaround is to do download one of:
- http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
- http://dl.google.com/android/android-sdk_r22.6.2-windows.zip
- http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip
and copy over the following files:
- tools/hprof-conv
- tools/support/annotations.jar
- tools/proguard
Right click on your project --> project.properties
--> target=android-19
Tomorrow I had the same problem after the update to ADT 23.
The problem is related to the annotations.
There are two libraries with annotations in the Android SDK:
android-sdk/extras/android/support/annotations/android-support-annotations.jar
this package contains:
and
android-sdk/tools/support/annotations.jar
that...with the new ADT update, for some reason disappeared.
This package contains the two annotations (probably the most used :-)):
Without them, if your code (or dependencies use them) Eclipse will complain.
To fix this problem, we need the previous annotation.jar
.
So I downloaded the file from the link suggested by @aarati:
http://central.maven.org/maven2/com/google/android/annotations/4.1.1.4/annotations-4.1.1.4.jar
Renamed it in annotation.jar
and moved to: android-sdk/tools/support/
Restarting Eclipse everything will be fine.
Adding http://central.maven.org/maven2/com/google/android/annotations/4.1.1.4/annotations-4.1.1.4.jar as annotations.jar resolved my errors
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With