[Android Q&A, Help & Troubleshooting] cspctec:
Hi guys. I downloaded the Android 6.0 source yesterday and tried to compile it today, but I'm getting the following error:

[ 10% 3372/33016] Docs droiddoc: out/target/common/docs/system-api-stubs
FAILED: /bin/bash out/target/common/docs/system-api-stubs-timestamp.rsp
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: com.sun.javadoc.MethodDoc.isDefault()Z
at com.google.doclava.Converter$2.make(Converter.java:428)
at com.google.doclava.Converter$Cache.obtain(Converter.java:686)
at com.google.doclava.Converter.obtainMethod(Converter.java:391)
at com.google.doclava.Converter.convertMethods(Converter.java:368)
at com.google.doclava.Converter.initClass(Converter.java:125)
at com.google.doclava.Converter.makeInfo(Converter.java:67)
at com.google.doclava.Doclava.start(Doclava.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
[ 10% 3372/33016] Docs droiddoc: out/target/common/docs/api-stubs
FAILED: /bin/bash out/target/common/docs/api-stubs-timestamp.rsp
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: com.sun.javadoc.MethodDoc.isDefault()Z
at com.google.doclava.Converter$2.make(Converter.java:428)
at com.google.doclava.Converter$Cache.obtain(Converter.java:686)
at com.google.doclava.Converter.obtainMethod(Converter.java:391)
at com.google.doclava.Converter.convertMethods(Converter.java:368)
at com.google.doclava.Converter.initClass(Converter.java:125)
at com.google.doclava.Converter.makeInfo(Converter.java:67)
at com.google.doclava.Doclava.start(Doclava.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1

I don't know what to do about this error, as I'm new to compiling ROMs.

I'm compiling on Linux Mint using openjdk-8:

openjdk version "1.8.0_72-internal"
OpenJDK Runtime Environment (build 1.8.0_72-internal-b15)
OpenJDK 64-Bit Server VM (build 25.72-b15, mixed mode)

Can anyone help me fix this? If you need anymore info about my current set up, please let me know.