0

我尝试运行 make update-api

但我犯了这个错误

out/target/common/obj/JAVA_LIBRARIES/android-support-v7-palette_intermediates/classes-jarjar.jar 复制:out/target/common/obj/JAVA_LIBRARIES/android-support-v7-palette_intermediates/emma_o​​ut/lib/classes-jarjar .jar 复制:out/target/common/obj/JAVA_LIBRARIES/android-support-v7-palette_intermediates/classes.jar 目标 Java:android-support-v8-renderscript (out/target/common/obj/JAVA_LIBRARIES/android-support- v8-renderscript_intermediates/classes) 注意:一些输入文件使用未经检查或不安全的操作。注意:使用 -Xlint:unchecked 重新编译以获取详细信息。复制:out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermediates/classes-jarjar.jar 复制:out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermediates/emma_o​​ut/lib/classes -jarjar.jar 复制:out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermediates/classes.jar build/core/droiddoc.mk:158: *** 单词太多 (5411)。停止。

make 未能构建一些目标 (06:10 (mm:ss))

请帮助我..提前谢谢...

4

1 回答 1

1

在浪费了一天之后,这就是答案,所以,droiddoc 中的字数限制为 5000 参见@build/core/definitions.mk,

对我来说,我有超过 5000 个,所以错误“TO many words”

所以解决方案是修改 var dump-words-to-file

修改前

# dump-words-to-file, <word list>, <output file>

定义转储词到文件 @rm -f $(2) @$(call emit-line,$(wordlist 1,200,$(1)),$(2)) @$(call emit-line,$( wordlist 201,400,$(1)),$(2)) @$(call emit-line,$(wordlist 401,600,$(1)),$(2)) @$(call emit-line,$(wordlist 601,800 ,$(1)),$(2)) @$(call emit-line,$(wordlist 801,1000,$(1)),$(2)) @$(call emit-line,$(wordlist 1001 ,1200,$(1)),$(2)) @$(call emit-line,$(wordlist 1201,1400,$(1)),$(2)) @$(call emit-line,$( wordlist 1401,1600,$(1)),$(2)) @$(call emit-line,$(wordlist 1601,1800,$(1)),$(2)) @$(call emit-line, $(wordlist 1801,2000,$(1)),$(2)) @$(call emit-line,$(wordlist 2001,2200,$(1)),$(2)) @$(call emit- line,$(wordlist 2201,2400,$(1)),$(2)) @$(call emit-line,$(wordlist 2401,2600,$(1)),$(2)) @$(call发射线,$(wordlist 2601,2800,$(1)),$(2)) @$(call emit-line,$(wordlist 2801,3000,$(1)),$(2)) @$(call emit-line,$(wordlist 3001,3200,$(1) ),$(2)) @$(调用发射线,$(wordlist 3201,3400,$(1)),$(2)) @$(调用发射线,$(wordlist 3401,3600,$( 1)),$(2)) @$(调用发射线,$(wordlist 3601,3800,$(1)),$(2)) @$(调用发射线,$(wordlist 3801,4000, $(1)),$(2)) @$(call emit-line,$(wordlist 4001,4200,$(1)),$(2)) @$(call emit-line,$(wordlist 4201, 4400,$(1)),$(2)) @$(call emit-line,$(wordlist 4401,4600,$(1)),$(2)) @$(call emit-line,$(wordlist 4601,4800,$(1)),$(2)) @$(call emit-line,$(wordlist 4801,5000,$(1)),$(2)) @$(if $(wordlist 5001, 5002,$(1)),$(error Too many words ($(words $(1))))) endef$(2)) @$(call emit-line,$(wordlist 3201,3400,$(1)),$(2)) @$(call emit-line,$(wordlist 3401,3600,$(1) ),$(2)) @$(调用发射线,$(wordlist 3601,3800,$(1)),$(2)) @$(调用发射线,$(wordlist 3801,4000,$( 1)),$(2)) @$(调用发射线,$(wordlist 4001,4200,$(1)),$(2)) @$(调用发射线,$(wordlist 4201,4400, $(1)),$(2)) @$(call emit-line,$(wordlist 4401,4600,$(1)),$(2)) @$(call emit-line,$(wordlist 4601, 4800,$(1)),$(2)) @$(调用发射线,$(wordlist 4801,5000,$(1)),$(2)) @$(if $(wordlist 5001,5002, $(1)),$(error Too many words ($(words $(1))))) endef$(2)) @$(call emit-line,$(wordlist 3201,3400,$(1)),$(2)) @$(call emit-line,$(wordlist 3401,3600,$(1) ),$(2)) @$(调用发射线,$(wordlist 3601,3800,$(1)),$(2)) @$(调用发射线,$(wordlist 3801,4000,$( 1)),$(2)) @$(调用发射线,$(wordlist 4001,4200,$(1)),$(2)) @$(调用发射线,$(wordlist 4201,4400, $(1)),$(2)) @$(call emit-line,$(wordlist 4401,4600,$(1)),$(2)) @$(call emit-line,$(wordlist 4601, 4800,$(1)),$(2)) @$(调用发射线,$(wordlist 4801,5000,$(1)),$(2)) @$(if $(wordlist 5001,5002, $(1)),$(error Too many words ($(words $(1))))) endef$(2)) @$(call emit-line,$(wordlist 4001,4200,$(1)),$(2)) @$(call emit-line,$(wordlist 4201,4400,$(1) ),$(2)) @$(调用发射线,$(wordlist 4401,4600,$(1)),$(2)) @$(调用发射线,$(wordlist 4601,4800,$( 1)),$(2)) @$(调用发射线,$(wordlist 4801,5000,$(1)),$(2)) @$(if $(wordlist 5001,5002,$(1) ),$(error Too many words ($(words $(1))))) endef$(2)) @$(call emit-line,$(wordlist 4001,4200,$(1)),$(2)) @$(call emit-line,$(wordlist 4201,4400,$(1) ),$(2)) @$(调用发射线,$(wordlist 4401,4600,$(1)),$(2)) @$(调用发射线,$(wordlist 4601,4800,$( 1)),$(2)) @$(调用发射线,$(wordlist 4801,5000,$(1)),$(2)) @$(if $(wordlist 5001,5002,$(1) ),$(error Too many words ($(words $(1))))) endef

修改后是:

# dump-words-to-file, <word list>, <output file>

定义转储词到文件 @rm -f $(2) @$(call emit-line,$(wordlist 1,200,$(1)),$(2)) @$(call emit-line,$( wordlist 201,400,$(1)),$(2)) @$(call emit-line,$(wordlist 401,600,$(1)),$(2)) @$(call emit-line,$(wordlist 601,800 ,$(1)),$(2)) @$(call emit-line,$(wordlist 801,1000,$(1)),$(2)) @$(call emit-line,$(wordlist 1001 ,1200,$(1)),$(2)) @$(call emit-line,$(wordlist 1201,1400,$(1)),$(2)) @$(call emit-line,$( wordlist 1401,1600,$(1)),$(2)) @$(call emit-line,$(wordlist 1601,1800,$(1)),$(2)) @$(call emit-line, $(wordlist 1801,2000,$(1)),$(2)) @$(call emit-line,$(wordlist 2001,2200,$(1)),$(2)) @$(call emit- line,$(wordlist 2201,2400,$(1)),$(2)) @$(call emit-line,$(wordlist 2401,2600,$(1)),$(2)) @$(call发射线,$(wordlist 2601,2800,$(1)),$(2)) @$(call emit-line,$(wordlist 2801,3000,$(1)),$(2)) @$(call emit-line,$(wordlist 3001,3200,$(1) ),$(2)) @$(调用发射线,$(wordlist 3201,3400,$(1)),$(2)) @$(调用发射线,$(wordlist 3401,3600,$( 1)),$(2)) @$(调用发射线,$(wordlist 3601,3800,$(1)),$(2)) @$(调用发射线,$(wordlist 3801,4000, $(1)),$(2)) @$(call emit-line,$(wordlist 4001,4200,$(1)),$(2)) @$(call emit-line,$(wordlist 4201, 4400,$(1)),$(2)) @$(call emit-line,$(wordlist 4401,4600,$(1)),$(2)) @$(call emit-line,$(wordlist 4601,4800,$(1)),$(2)) @$(call emit-line,$(wordlist 4801,5400,$(1)),$(2)) @$(if $(wordlist 5401, 5402,$(1)),$(error Too many words ($(words $(1))))) endef$(2)) @$(call emit-line,$(wordlist 3201,3400,$(1)),$(2)) @$(call emit-line,$(wordlist 3401,3600,$(1) ),$(2)) @$(调用发射线,$(wordlist 3601,3800,$(1)),$(2)) @$(调用发射线,$(wordlist 3801,4000,$( 1)),$(2)) @$(调用发射线,$(wordlist 4001,4200,$(1)),$(2)) @$(调用发射线,$(wordlist 4201,4400, $(1)),$(2)) @$(call emit-line,$(wordlist 4401,4600,$(1)),$(2)) @$(call emit-line,$(wordlist 4601, 4800,$(1)),$(2)) @$(调用发射线,$(wordlist 4801,5400,$(1)),$(2)) @$(if $(wordlist 5401,5402, $(1)),$(error Too many words ($(words $(1))))) endef$(2)) @$(call emit-line,$(wordlist 3201,3400,$(1)),$(2)) @$(call emit-line,$(wordlist 3401,3600,$(1) ),$(2)) @$(调用发射线,$(wordlist 3601,3800,$(1)),$(2)) @$(调用发射线,$(wordlist 3801,4000,$( 1)),$(2)) @$(调用发射线,$(wordlist 4001,4200,$(1)),$(2)) @$(调用发射线,$(wordlist 4201,4400, $(1)),$(2)) @$(call emit-line,$(wordlist 4401,4600,$(1)),$(2)) @$(call emit-line,$(wordlist 4601, 4800,$(1)),$(2)) @$(调用发射线,$(wordlist 4801,5400,$(1)),$(2)) @$(if $(wordlist 5401,5402, $(1)),$(error Too many words ($(words $(1))))) endef$(2)) @$(call emit-line,$(wordlist 4001,4200,$(1)),$(2)) @$(call emit-line,$(wordlist 4201,4400,$(1) ),$(2)) @$(调用发射线,$(wordlist 4401,4600,$(1)),$(2)) @$(调用发射线,$(wordlist 4601,4800,$( 1)),$(2)) @$(调用发射线,$(wordlist 4801,5400,$(1)),$(2)) @$(if $(wordlist 5401,5402,$(1) ),$(error Too many words ($(words $(1))))) endef$(2)) @$(call emit-line,$(wordlist 4001,4200,$(1)),$(2)) @$(call emit-line,$(wordlist 4201,4400,$(1) ),$(2)) @$(调用发射线,$(wordlist 4401,4600,$(1)),$(2)) @$(调用发射线,$(wordlist 4601,4800,$( 1)),$(2)) @$(调用发射线,$(wordlist 4801,5400,$(1)),$(2)) @$(if $(wordlist 5401,5402,$(1) ),$(error Too many words ($(words $(1))))) endef

并且错误消失了。:)

于 2015-08-27T14:44:00.997 回答