I'm trying to create an Android library JAR and would like to use ant for an automated build.

I noticed that when I use ant release, however, the jar file gets added an extra android/annotation folder with TargetApi.class and SuppressLint.class. This causes problems when I try to run an app with the jar, I get: