源码中有一个sed文件frameworks\base\core\res\MakeJavaSymbols.sed。 # Run this on the errors output by javac of missing resource symbols, # to generate the set of <java-symbol> commands to have aapt generate # the symbol for them. # For example: make framework 2>&1 | sed -n -f MakeJavaSymbols.sed | sort -u 可以试试
# Run this on the errors output by javac of missing resource symbols,
# to generate the set of <java-symbol> commands to have aapt generate
# the symbol for them.
# For example: make framework 2>&1 | sed -n -f MakeJavaSymbols.sed | sort -u
可以试试