android 9 make update-api failed

[ 85% 18/21] Compiling SDK Stubs: out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 95% 19/20] Copying current.txt
Copying removed.txt
[100% 20/20] Docs droiddoc: out/target/common/docs/doc-comment-check
FAILED: out/target/common/docs/doc-comment-check-timestamp


/bin/bash out/target/common/docs/doc-comment-check-timestamp.rsp
javadoc: warning - The old Doclet and Taglet APIs in the packages
com.sun.javadoc, com.sun.tools.doclets and their implementations
are planned to be removed in a future JDK release. These
components have been superseded by the new APIs in jdk.javadoc.doclet.
Users are strongly recommended to migrate to the new APIs.


frameworks/base/../../frameworks/base/core/java/android/content/Context.java:3954: lint: Unresolved link/see tag "android.os.DisplayManager" in android.content.Context [101]
frameworks/base/../../frameworks/base/core/java/android/os/PowerManager.java:864: lint: Unresolved link/see tag "android.Manifest.permission#DEVICE_POWER" in android.os.PowerManager [101]
DroidDoc took 273 sec. to write docs to out/target/common/docs/doc-comment-check
ninja: build stopped: subcommand failed.
17:10:41 ninja failed with: exit status 1

#### failed to build some targets (07:15 (mm:ss)) ####

From the code here you can see where the error is reported unresolved lines

frameworks/base/../../frameworks/base/core/java/android/content/Context.java:3954: lint: Unresolved link/see tag "android.os.DisplayManager" in android.content.Context [101]
frameworks/base/../../frameworks/base/core/java/android/os/PowerManager.java:864: lint: Unresolved link/see tag "android.Manifest.permission#DEVICE_POWER" in android.os.PowerManager [101]
DroidDoc took 273 sec. to write docs to out/target/common/docs/doc-comment-check
ninja: build stopped: subcommand failed.
17:10:41 ninja failed with: exit status 1

There are two errors, Line 3954 of Context.java and Line 864 of PowerManager.java.

Correct these two places and re-execute make update-api

Guess you like

Origin blog.csdn.net/MilesMatheson/article/details/131250874
Recommended