Don't pass GENERATED_SOURCE_DIR to LOCAL_GENERATED_SOURCES.
You can't pass a dir to LOCAL_GENERATED_SOURCES.
Javac automatically covers source generated by annotation processors and
you don't need to pass the generated source files.
Bug: 28389144
Change-Id: If1a61519080ee8f719061b750b3876d84779072c
diff --git a/java_annotation_processors.mk b/java_annotation_processors.mk
index 22ff020..d901083 100644
--- a/java_annotation_processors.mk
+++ b/java_annotation_processors.mk
@@ -50,7 +50,6 @@
# Tell javac to generate source files in the source directory.
LOCAL_JAVACFLAGS += -s $(GENERATED_SOURCE_DIR)
-LOCAL_GENERATED_SOURCES := $(GENERATED_SOURCE_DIR)
# Add dependency between the jar being built and the processor jars so that
# they are built before this one.