[Android Q&A, Help & Troubleshooting] cbucz24:
Here are the doclava errors I was describing. its always at the checkapi point of the build, line 2975...

down towards the bottom there seems to be a different error. but fixing this may result in that one also fixing...im not sure

Checking API: checkapi-last
Checking API: checkapi-current
Install: /home/bucz/android/system/out/host/linux-x86/framework/layoutlib.jar
Compiling SDK Stubs: /home/bucz/android/system/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar
Couldn't parse API file "frameworks/base/api/current.txt"
...as text: com.google.doclava.apicheck.ApiParseException: missing class or interface. got: private line 2975
...as XML: com.google.doclava.apicheck.ApiParseException: Error parsing API
Couldn't parse API file "/home/bucz/android/system/out/target/common/obj/PACKAGING/public_api.txt"
...as text: com.google.doclava.apicheck.ApiParseException: missing class or interface. got: private line 2975
...as XML: com.google.doclava.apicheck.ApiParseException: Error parsing API
Exception in thread "main" java.lang.NullPointerException
at com.google.doclava.apicheck.ApiCheck.checkApi(ApiCheck.java:118)
at com.google.doclava.apicheck.ApiCheck.main(ApiCheck.java:67)

******************************
You have tried to change the API from what has been previously approved.

To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.

2) You can update current.txt by executing the following command:
make update-api
^^^^^^^^^^^^^^^^^^
NO. NO. STOP BEING LAZY. SERIOUSLY.
DO NOT DO THIS in CM. THIS IS A LIE. IF YOU DO THIS I WILL HATE YOU.
USE OPTION #1.
-Koush

To submit the revised current.txt to the main Android repository,
you will need approval.
******************************

make: *** [/home/bucz/android/system/out/target/common/obj/PACKAGING/checkapi-current-timestamp] Error 38
make: *** Waiting for unfinished jobs....
Couldn't parse API file "/home/bucz/android/system/out/target/common/obj/PACKAGING/public_api.txt"
...as text: com.google.doclava.apicheck.ApiParseException: missing class or interface. got: private line 2975
...as XML: com.google.doclava.apicheck.ApiParseException: Error parsing API
Exception in thread "main" java.lang.NullPointerException
at com.google.doclava.apicheck.ApiInfo.isConsistent(ApiInfo.java:60)
at com.google.doclava.apicheck.ApiCheck.checkApi(ApiCheck.java:118)
at com.google.doclava.apicheck.ApiCheck.main(ApiCheck.java:67)

******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************

make: *** [/home/bucz/android/system/out/target/common/obj/PACKAGING/checkapi-last-timestamp] Error 38
/home/bucz/android/system/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java:5: warning: [unchecked] unchecked conversion
found : java.lang.ref.ReferenceQueue
required: java.lang.ref.ReferenceQueue<? super org.apache.http.impl.conn.tsccm.BasicPoolEntry>
public BasicPoolEntryRef(org.apache.http.impl.conn.tsccm.BasicPoolEntry entry, java.lang.ref.ReferenceQueue<java.lang.Object> queue) { super(null,(java.lang.ref.ReferenceQueue)null); throw new RuntimeException("Stub!"); }
^
/home/bucz/android/system/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/security/cert/PKIXBuilderParameters.java:5: warning: [unchecked] unchecked conversion
found : java.util.Set
required: java.util.Set<java.security.cert.TrustAnchor>
public PKIXBuilderParameters(java.util.Set<java.security.cert.TrustAnchor> trustAnchors, java.security.cert.CertSelector targetConstraints) throws java.security.InvalidAlgorithmParameterException { super((java.util.Set)null); throw new RuntimeException("Stub!"); }
^
/home/bucz/android/system/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/util/concurrent/ScheduledThreadPoolExecutor.java:6: warning: [unchecked] unchecked conversion
found : java.util.concurrent.BlockingQueue
required: java.util.concurrent.BlockingQueue<java.lang.Runnable>
public ScheduledThreadPoolExecutor(int corePoolSize) { super(0,0,0,(java.util.concurrent.TimeUnit)null,(java.util.concurrent.BlockingQueue)null,(java.util.concurrent.ThreadFactory)null,(java.util.concurrent.RejectedExecutionHandler)null); throw new RuntimeException("Stub!"); }
^
/home/bucz/android/system/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/util/concurrent/ScheduledThreadPoolExecutor.java:7: warning: [unchecked] unchecked conversion
found : java.util.concurrent.BlockingQueue
required: java.util.concurrent.BlockingQueue<java.lang.Runnable>
public ScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory) { super(0,0,0,(java.util.concurrent.TimeUnit)null,(java.util.concurrent.BlockingQueue)null,(java.util.concurrent.ThreadFactory)null,(java.util.concurrent.RejectedExecutionHandler)null); throw new RuntimeException("Stub!"); }
^
/home/bucz/android/system/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/util/concurrent/ScheduledThreadPoolExecutor.java:8: warning: [unchecked] unchecked conversion
found : java.util.concurrent.BlockingQueue
required: java.util.concurrent.BlockingQueue<java.lang.Runnable>
public ScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.RejectedExecutionHandler handler) { super(0,0,0,(java.util.concurrent.TimeUnit)null,(java.util.concurrent.BlockingQueue)null,(java.util.concurrent.ThreadFactory)null,(java.util.concurrent.RejectedExecutionHandler)null); throw new RuntimeException("Stub!"); }
^
/home/bucz/android/system/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/util/concurrent/ScheduledThreadPoolExecutor.java:9: warning: [unchecked] unchecked conversion
found : java.util.concurrent.BlockingQueue
required: java.util.concurrent.BlockingQueue<java.lang.Runnable>
public ScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler) { super(0,0,0,(java.util.concurrent.TimeUnit)null,(java.util.concurrent.BlockingQueue)null,(java.util.concurrent.ThreadFactory)null,(java.util.concurrent.RejectedExecutionHandler)null); throw new RuntimeException("Stub!"); }
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
6 warnings
frameworks/base/core/java/android/preference/ColorPickerPreference.java:244: error 103: Unknown tag: @returns
frameworks/base/core/java/android/util/ExtendedPropertiesUtils.java:440: error 103: Unknown tag: @properties
DroidDoc took 157 sec. to write docs to /home/bucz/android/system/out/target/common/docs/doc-comment-check
make: *** [/home/bucz/android/system/out/target/common/docs/doc-comment-check-timestamp] Error 45