When the ADT is upgraded, the tool and platform-tools of the corresponding SDK are not upgraded, resulting in the following problems.
The solution is: Upgrade the SDK tool and platform-tools at the same time, especially to android4.0. The ADT upgrade must be followed by the SDK tool and platform-tools upgrade.
[08:56:18-onlinechat] error: Unknown option '-- no-crunch'
[08:56:18-onlinechat] Android asset packaging Tool
[2011-10-24 08:56:18-onlinechat]
[08:56:18-onlinechat] usage:
[08:56:18-onlinechat] aapt L [ist] [-V] [-A] file. {zip, jar, APK}
[08:56:18-onlinechat] list contents of zip-compatible archive.
[2011-10-24 08:56:18-onlinechat]
[08:56:18-onlinechat] aapt d [UMP] [-- values] What file. {APK} [asset [asset...]
[08:56:18-onlinechat] badging print the label and icon for the app declared in APK.
[08:56:18-onlinechat] permissions print the permissions from the APK.
[08:56:18-onlinechat] resources print the resource table from the APK.
[08:56:18-onlinechat] deployments print the deployments in the APK.
[08:56:18-onlinechat] xmltree print the compiled xmls in the given assets.
[08:56:18-onlinechat] xmlstrings print the strings of the given compiled XML assets.
[2011-10-24 08:56:18-onlinechat]
[08:56:18-onlinechat] aapt P [ackage] [-D] [-F] [-M] [-u] [-V] [-x] [-Z] [-M androidmanifest. XML] \
[08:56:18-onlinechat] [-0 extension [-0 extension...] [-G tolerance] [-J jarfile] \
[2011-10-24 08:56:18-onlinechat] [-- debug-mode] [-- Min-SDK-version Val] [-- target-SDK-version Val] \
[2011-10-24 08:56:18-onlinechat] [-- app-version Val] [-- app-version-Name text] [-- custom-package Val] \
[08:56:18-onlinechat] [-- rename-manifest-package] \
[08:56:18-onlinechat] [-- rename-Instrumentation-target-package] \
[08:56:18-onlinechat] [-- UTF16] [-- auto-add-overlay] \
[2011-10-24 08:56:18-onlinechat] [-- Max-res-version Val] \
[08:56:18-onlinechat] [-I base-package [-I base-package...] \
[08:56:18-onlinechat] [-A asset-source-Dir] [-G class-list-file] [-P public-definitions-file] \
[08:56:18-onlinechat] [-s resource-sources [-s resource-sources...] [-f apk-file] [-j r-file-Dir] \
[08:56:18-onlinechat] [-- product product1, product2,...] \
[08:56:18-onlinechat] [raw-files-dir [raw-files-Dir]...]
[2011-10-24 08:56:18-onlinechat]
[08:56:18-onlinechat] package the android resources. It will read assets and resources that are
[2011-10-24 08:56:18-onlinechat] supplied with the-M-a-s or raw-files-Dir arguments. The-J-p-F and-R
[08:56:18-onlinechat] options control which files are output.
[2011-10-24 08:56:18-onlinechat]
[08:56:18-onlinechat] aapt R [emove] [-v] file. {zip, jar, APK} file1 [file2...]
[08:56:18-onlinechat] Delete specified files from zip-compatible archive.
[2011-10-24 08:56:18-onlinechat]
[08:56:18-onlinechat] aapt A [DD] [-v] file. {zip, jar, APK} file1 [file2...]
[08:56:18-onlinechat] add specified files to zip-compatible archive.
[2011-10-24 08:56:18-onlinechat]
[08:56:18-onlinechat] aapt V [ersion]
[2011-10-24 08:56:18-onlinechat] print program version.
[2011-10-24 08:56:18-onlinechat]
[2011-10-24 08:56:18-onlinechat] modifiers:
[08:56:18-onlinechat]-A print Android-specific data (resources, manifest) when listing
[08:56:18-onlinechat]-C specify which operations to include. The default is all
[08:56:18-onlinechat] events. The value of the parameter shocould be a comma
[08:56:18-onlinechat] separated list of configuration values. locales shocould be specified
[08:56:18-onlinechat] as either a language or language-region pair. Some examples:
[2011-10-24 08:56:18-onlinechat] En
[2011-10-24 08:56:18-onlinechat] Port, en
[08:56:18-onlinechat] Port, land, en_us
[08:56:18-onlinechat] If you put the special locale, zz_zz on the list, it will perform
[08:56:18-onlinechat] pseudolocalization on the default locale, modifying all of
[08:56:18-onlinechat] strings so you can look for strings that missed
[08:56:18-onlinechat] internationalization process. For example:
[08:56:18-onlinechat] Port, land, zz_zz
[08:56:18-onlinechat]-d one or more device assets to include, separated by commas
[08:56:18-onlinechat]-F force overwrite of existing files
[2011-10-24 08:56:18-onlinechat]-G specify a pixel tolerance to force images to grayscale, default 0
[2011-10-24 08:56:18-onlinechat]-J specify a jar or ZIP file containing classes to include
[2011-10-24 08:56:18-onlinechat]-K junk path of file (s) added
[08:56:18-onlinechat]-M make package directories under location specified by-J
[08:56:18-onlinechat]-u update existing packages (add new, replace older, remove deleted files)
[2011-10-24 08:56:18-onlinechat]-V verbose output
[08:56:18-onlinechat]-x create extending (non-application) Resource IDS
[2011-10-24 08:56:18-onlinechat]-Z require localization of resource attributes marked
[08:56:18-onlinechat] localization = "suggested"
[08:56:18-onlinechat]-A additional directory in which to find raw asset files
[08:56:18-onlinechat]-G a file to output proguard options.
[2011-10-24 08:56:18-onlinechat]-F specify the APK file to output
[08:56:18-onlinechat]-I add an existing package to base include set
[08:56:18-onlinechat]-J specify where to output R. Java resource constant Definitions
[2011-10-24 08:56:18-onlinechat]-M specify full path to androidmanifest. XML to include in zip
[2011-10-24 08:56:18-onlinechat]-P specify where to output public resource definitions
[08:56:18-onlinechat]-s directory in which to find resources. multiple directories will be scanned
[08:56:18-onlinechat] and the first match found (left to right) will take precedence.
[2011-10-24 08:56:18-onlinechat]-0 specifies an additional extension for which such files will not
[08:56:18-onlinechat] be stored compressed in the. APK. An empty string means to not
[08:56:18-onlinechat] compress any files at all.
[2011-10-24 08:56:18-onlinechat] -- debug-Mode
[08:56:18-onlinechat] inserts Android: debuggable = "true" in to the application node of
[08:56:18-onlinechat] manifest, making the application debuggable even on production devices.
[2011-10-24 08:56:18-onlinechat] -- Min-SDK-version
[08:56:18-onlinechat] inserts Android: minsdkversion in to manifest. if the version is 7 or
[08:56:18-onlinechat] higher, the default encoding for resources will be in UTF-8.
[2011-10-24 08:56:18-onlinechat] -- target-SDK-version
[08:56:18-onlinechat] inserts Android: targetsdkversion in to manifest.
[2011-10-24 08:56:18-onlinechat] -- Max-res-version
[08:56:18-onlinechat] ignores versioned resource directories abve the given value.
[2011-10-24 08:56:18-onlinechat] -- values
[08:56:18-onlinechat] when used with "Dump resources" also includes resource values.
[2011-10-24 08:56:18-onlinechat] -- version-code
[08:56:18-onlinechat] inserts Android: versioncode in to manifest.
[2011-10-24 08:56:18-onlinechat] -- version-name
[08:56:18-onlinechat] inserts Android: versionname in to manifest.
[08:56:18-onlinechat] -- custom-Package
[08:56:18-onlinechat] generates R. Java into a different package.
[08:56:18-onlinechat] -- auto-add-Overlay
[08:56:18-onlinechat] automatically add resources that are only in overlays.
[08:56:18-onlinechat] -- rename-manifest-Package
[08:56:18-onlinechat] rewrite the manifest so that its package name is the package name
[08:56:18-onlinechat] given here. Relative class names (for example. Foo) will be
[08:56:18-onlinechat] changed to absolute names with the old package so that the code
[08:56:18-onlinechat] does not need to change.
[08:56:18-onlinechat] -- rename-Instrumentation-target-Package
[08:56:18-onlinechat] rewrite the manifest so that all of its Instrumentation
[08:56:18-onlinechat] components target the given package. Useful when used in
[2011-10-24 08:56:18-onlinechat] conjunction with -- rename-manifest-package to fix tests against
[08:56:18-onlinechat] A package that has been renamed.
[2011-10-24 08:56:18-onlinechat] -- product
[08:56:18-onlinechat] specifies which variant to choose for strings that have
[2011-10-24 08:56:18-onlinechat] product variants
[2011-10-24 08:56:18-onlinechat] -- UTF16
[08:56:18-onlinechat] Changes default encoding for resources to UTF-16. only useful when API
[2011-10-24 08:56:18-onlinechat] level is set to 7 or higher where the default encoding is UTF-8.
[2011-10-24 08:56:18-onlinechat] -- Non-Constant-ID
[08:56:18-onlinechat] Make the resources ID non constant. This is required to make an R Java class
[2011-10-24 08:56:18-onlinechat] that does not contain the final value but is used to make reusable compiled
[08:56:18-onlinechat] libraries that need to access resources.