First, thanks to Bill Yi and team for publishing the N sources.

I have a tree synced to the tag *android-7.0.0_r1* on an ubuntu 16.04 
machine, but am hitting the following build error:

external/doclava/src/com/google/doclava/Converter.java:407: error: cannot 
find symbol
                    m.isAbstract(), m.isSynchronized(), m.isNative(), 
m.isDefault(), true,
                                                                       ^
  symbol:   method isDefault()
  location: variable m of type AnnotationTypeElementDoc
external/doclava/src/com/google/doclava/Converter.java:429: error: cannot 
find symbol
                    m.isAbstract(), m.isSynchronized(), m.isNative(), 
m.isDefault(), false,
                                                                       ^
  symbol:   method isDefault()
  location: variable m of type MethodDoc
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/jamuir/git/android-7.0-platform'


I can reproduce the error this like this:  "cd external/doclava && mm -B".

This seems like a java incompatibility issue.  I am using openjdk-8 (I have 
not tried oracle-java-8).

Here is my java version:

external/doclava$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)


Does anyone have a solution for this?

What version of openjdk-8 were you able to use to successfully 
compile android-7.0.0_r1 ?

Note that I tried adding casts, ((MethodInfo)m).isDefault(), but that 
causes another error later on in the build.

-James M

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to