Error Handling: AnnotationAccess. java: 695: The type parameter of <A> A cannot be determined, and the Closed Boundary cannot be determined.
Error Handling: AnnotationAccess. java: 695: The type parameter of <A> A cannot be determined.
The first time I compiled Android4.4 code under Ubuntu12.04 today, I encountered the following:
AnnotationAccess. java: 695: The type parameter of <A> A cannot be determined. For A, java. lang. annotation. annotation type variable A, there is no unique maximum instance return AnnotationFactory. createAnnotation (annotationClass, members); ^ Note: some input files use or overwrite outdated APIs. Note: For details, use-Xlint: deprecation to re-compile. Note: Some input files use unchecked or insecure operations.
View the Google development documentation, which has requirements for Java Jdk.
The system jdk version is too low. The current local JDK version is 1.6.0 _ 24
$ Java-versionjava version "1.6.0 _ 24" Java (TM) SE Runtime Environment (build 1.6.0 _ 24-b07) Java HotSpot (TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
Install jdk 1.6.0 _ 45, switch to the jdk version, and solve the problem.