当我尝试运行
make update-api
时,我收到此错误:
target Static Jar: android-support-v7-mediarouter-jellybean-mr1
(out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter-jellybean-mr1_intermediates/javalib.jar)
target Java: android-support-v7-mediarouter-jellybean-mr2
(out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter-jellybean-mr2_intermediates/classes)
Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter-jellybean-mr2_intermediates/classes-jarjar.jar Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter-jellybean-mr2_intermediates/emma_out/lib/classes-jarjar.jar
Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter-jellybean-mr2_intermediates/classes.jar
target Static Jar: android-support-v7-mediarouter-jellybean-mr2
(out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter-jellybean-mr2_intermediates/javalib.jar)
target Java: android-support-v7-mediarouter
(out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter_intermediates/classes)
Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter_intermediates/classes-jarjar.jar
Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter_intermediates/emma_out/lib/classes-jarjar.jar
Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-mediarouter_intermediates/classes.jar
target Java: android-support-v7-palette
(out/target/common/obj/JAVA_LIBRARIES/android-support-v7-palette_intermediates/classes)
Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-palette_intermediates/classes-jarjar.jar Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-palette_intermediates/emma_out/lib/classes-jarjar.jar
Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v7-palette_intermediates/classes.jar
target Java: android-support-v8-renderscript
(out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermediates/classes)
Note: Some input files use unchecked or unsafe operations. Note:
Recompile with -Xlint:unchecked for details. Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermediates/classes-jarjar.jar
Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermediates/emma_out/lib/classes-jarjar.jar Copying:
out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermediates/classes.jar
build/core/droiddoc.mk:158: *** Too many words (5411). Stop.
#### make failed to build some targets (06:10 (mm:ss)) ####
你能帮我一下吗?预先感谢。
浪费了一天的时间,这就是答案, 因此,droiddoc 中的字数限制为 5000 字 @build/core/definitions.mk,
对我来说,我有超过 5000 个,所以错误“TO much Words”
所以解决方案是修改 var dump-words-to-file
修改前
# dump-words-to-file, <word list>, <output file>
定义转储单词到文件 @rm -f $(2) @$(调用emit-line,$(单词列表1,200,$(1)),$(2)) @$(调用emit-line,$(单词列表201,400,$(1)),$(2)) @$(调用emit-line,$(单词列表401,600,$(1)),$(2)) @$(调用emit-line,$(单词列表601,800,$(1)),$(2)) @$(调用emit-line,$(单词列表801,1000,$(1)),$(2)) @$(调用emit-line,$(单词列表1001,1200,$(1)),$(2)) @$(调用emit-line,$(单词列表1201,1400,$(1)),$(2)) @$(调用emit-line,$(单词列表1401,1600,$(1)),$(2)) @$(调用emit-line,$(单词列表1601,1800,$(1)),$(2)) @$(调用emit-line,$(单词列表1801,2000,$(1)),$(2)) @$(调用emit-line,$(单词列表2001,2200,$(1)),$(2)) @$(调用emit-line,$(单词列表2201,2400,$(1)),$(2)) @$(调用emit-line,$(单词列表2401,2600,$(1)),$(2)) @$(调用emit-line,$(单词列表2601,2800,$(1)),$(2)) @$(调用emit-line,$(单词列表2801,3000,$(1)),$(2)) @$(调用emit-line,$(单词列表3001,3200,$(1)),$(2)) @$(调用emit-line,$(单词列表3201,3400,$(1)),$(2)) @$(调用emit-line,$(单词列表3401,3600,$(1)),$(2)) @$(调用emit-line,$(单词列表3601,3800,$(1)),$(2)) @$(调用emit-line,$(单词列表3801,4000,$(1)),$(2)) @$(调用emit-line,$(单词列表4001,4200,$(1)),$(2)) @$(调用emit-line,$(单词列表4201,4400,$(1)),$(2)) @$(调用emit-line,$(单词列表4401,4600,$(1)),$(2)) @$(调用emit-line,$(单词列表4601,4800,$(1)),$(2)) @$(调用emit-line,$(单词列表4801,5000,$(1)),$(2)) @$(if $(wordlist 5001,5002,$(1)),$(错误单词太多 ($(单词 $(1))))) 恩德夫
修改后是:
# dump-words-to-file, <word list>, <output file>
定义转储单词到文件 @rm -f $(2) @$(调用emit-line,$(单词列表1,200,$(1)),$(2)) @$(调用emit-line,$(单词列表201,400,$(1)),$(2)) @$(调用emit-line,$(单词列表401,600,$(1)),$(2)) @$(调用emit-line,$(单词列表601,800,$(1)),$(2)) @$(调用emit-line,$(单词列表801,1000,$(1)),$(2)) @$(调用emit-line,$(单词列表1001,1200,$(1)),$(2)) @$(调用emit-line,$(单词列表1201,1400,$(1)),$(2)) @$(调用emit-line,$(单词列表1401,1600,$(1)),$(2)) @$(调用emit-line,$(单词列表1601,1800,$(1)),$(2)) @$(调用emit-line,$(单词列表1801,2000,$(1)),$(2)) @$(调用emit-line,$(单词列表2001,2200,$(1)),$(2)) @$(调用emit-line,$(单词列表2201,2400,$(1)),$(2)) @$(调用emit-line,$(单词列表2401,2600,$(1)),$(2)) @$(调用emit-line,$(单词列表2601,2800,$(1)),$(2)) @$(调用emit-line,$(单词列表2801,3000,$(1)),$(2)) @$(调用emit-line,$(单词列表3001,3200,$(1)),$(2)) @$(调用emit-line,$(单词列表3201,3400,$(1)),$(2)) @$(调用emit-line,$(单词列表3401,3600,$(1)),$(2)) @$(调用emit-line,$(单词列表3601,3800,$(1)),$(2)) @$(调用emit-line,$(单词列表3801,4000,$(1)),$(2)) @$(调用emit-line,$(单词列表4001,4200,$(1)),$(2)) @$(调用emit-line,$(单词列表4201,4400,$(1)),$(2)) @$(调用emit-line,$(单词列表4401,4600,$(1)),$(2)) @$(调用emit-line,$(单词列表4601,4800,$(1)),$(2)) @$(调用emit-line,$(单词列表4801,5400,$(1)),$(2)) @$(if $(wordlist 5401,5402,$(1)),$(错误单词太多 ($(单词 $(1))))) 恩德夫
错误消失了。 :)