Man Pages


~/Android/Sdk/build-tools/30.0.2/aapt2 --help

aapt2 [subcommand] [options] files... Subcommands: compile Compiles resources to be linked into an apk. link Links resources into an apk. dump diff Prints the differences in resources of two apks. optimize Preforms resource optimizations on an apk. convert Converts an apk between binary and proto formats. version Prints the version of aapt. daemon Runs aapt in daemon mode. Each subsequent line is a single parameter to the command. The end of an invocation is signaled by providing an empty line. Options: -h Displays this help menu
~/Android/Sdk/build-tools/30.0.2/aapt2 compile --help
aapt2 compile [options] -o arg files... Options: -o arg Output path --dir arg Directory to scan for resources --zip arg Zip file containing the res directory to scan for resources --output-text-symbols arg Generates a text file containing the resource symbols in the specified file --pseudo-localize Generate resources for pseudo-locales (en-XA and ar-XB) --no-crunch Disables PNG processing --legacy Treat errors that used to be valid in AAPT as warnings --preserve-visibility-of-styleables If specified, apply the same visibility rules for styleables as are used for all other resources. Otherwise, all stylesables will be made public. --visibility arg Sets the visibility of the compiled resources to the specified level. Accepted levels: public, private, default -v Enables verbose logging --trace-folder arg Generate systrace json trace fragment to specified folder. -h Displays this help menu