在浪费了一天之后,这就是答案,所以,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
并且错误消失了。:)