Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android aapt.exe已停止工作_Android_Eclipse_Aapt - Fatal编程技术网

Android aapt.exe已停止工作

Android aapt.exe已停止工作,android,eclipse,aapt,Android,Eclipse,Aapt,我最近将我的工作区转移到另一个工作站,然后显示错误“aapt.exe已停止工作” 我已经阅读了一些答案,以取消选中“自动构建”,更新我的SDK,或使Android构建输出正常,然后崩溃将停止,但它没有。我还删除了我工作区的.metadata,并基本上再次将Eclipse的首选项设置为默认值。我从另一个工作站复制了aapt.exe并替换了我的,该日志显示: [2013-05-21 14:36:42 - example] ERROR: Unknown option '--output

我最近将我的工作区转移到另一个工作站,然后显示错误“aapt.exe已停止工作”

我已经阅读了一些答案,以取消选中“自动构建”,更新我的SDK,或使Android构建输出正常,然后崩溃将停止,但它没有。我还删除了我工作区的.metadata,并基本上再次将Eclipse的首选项设置为默认值。我从另一个工作站复制了aapt.exe并替换了我的,该日志显示:

        [2013-05-21 14:36:42 - example] ERROR: Unknown option '--output-text-symbols'
[2013-05-21 14:36:42 - example] Android Asset Packaging Tool
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example] Usage:
[2013-05-21 14:36:42 - example]  aapt l[ist] [-v] [-a] file.{zip,jar,apk}
[2013-05-21 14:36:42 - example]    List contents of Zip-compatible archive.
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example]  aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
[2013-05-21 14:36:42 - example]    badging          Print the label and icon for the app declared in APK.
[2013-05-21 14:36:42 - example]    permissions      Print the permissions from the APK.
[2013-05-21 14:36:42 - example]    resources        Print the resource table from the APK.
[2013-05-21 14:36:42 - example]    configurations   Print the configurations in the APK.
[2013-05-21 14:36:42 - example]    xmltree          Print the compiled xmls in the given assets.
[2013-05-21 14:36:42 - example]    xmlstrings       Print the strings of the given compiled xml assets.
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example]  aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \
[2013-05-21 14:36:42 - example]         [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \
[2013-05-21 14:36:42 - example]         [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \
[2013-05-21 14:36:42 - example]         [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \
[2013-05-21 14:36:42 - example]         [--rename-manifest-package PACKAGE] \
[2013-05-21 14:36:42 - example]         [--rename-instrumentation-target-package PACKAGE] \
[2013-05-21 14:36:42 - example]         [--utf16] [--auto-add-overlay] \
[2013-05-21 14:36:42 - example]         [--max-res-version VAL] \
[2013-05-21 14:36:42 - example]         [-I base-package [-I base-package ...]] \
[2013-05-21 14:36:42 - example]         [-A asset-source-dir]  [-G class-list-file] [-P public-definitions-file] \
[2013-05-21 14:36:42 - example]         [-S resource-sources [-S resource-sources ...]] \
[2013-05-21 14:36:42 - example]         [-F apk-file] [-J R-file-dir] \
[2013-05-21 14:36:42 - example]         [--product product1,product2,...] \
[2013-05-21 14:36:42 - example]         [-c CONFIGS] [--preferred-configurations CONFIGS] \
[2013-05-21 14:36:42 - example]         [-o] \
[2013-05-21 14:36:42 - example]         [raw-files-dir [raw-files-dir] ...]
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example]    Package the android resources.  It will read assets and resources that are
[2013-05-21 14:36:42 - example]    supplied with the -M -A -S or raw-files-dir arguments.  The -J -P -F and -R
[2013-05-21 14:36:42 - example]    options control which files are output.
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example]  aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
[2013-05-21 14:36:42 - example]    Delete specified files from Zip-compatible archive.
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example]  aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
[2013-05-21 14:36:42 - example]    Add specified files to Zip-compatible archive.
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example]  aapt c[runch] [-v] -S resource-sources ... -C output-folder ...
[2013-05-21 14:36:42 - example]    Do PNG preprocessing and store the results in output folder.
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example]  aapt v[ersion]
[2013-05-21 14:36:42 - example]    Print program version.
[2013-05-21 14:36:42 - example] 
[2013-05-21 14:36:42 - example]  Modifiers:
[2013-05-21 14:36:42 - example]    -a  print Android-specific data (resources, manifest) when listing
[2013-05-21 14:36:42 - example]    -c  specify which configurations to include.  The default is all
[2013-05-21 14:36:42 - example]        configurations.  The value of the parameter should be a comma
[2013-05-21 14:36:42 - example]        separated list of configuration values.  Locales should be specified
[2013-05-21 14:36:42 - example]        as either a language or language-region pair.  Some examples:
[2013-05-21 14:36:42 - example]             en
[2013-05-21 14:36:42 - example]             port,en
[2013-05-21 14:36:42 - example]             port,land,en_US
[2013-05-21 14:36:42 - example]        If you put the special locale, zz_ZZ on the list, it will perform
[2013-05-21 14:36:42 - example]        pseudolocalization on the default locale, modifying all of the
[2013-05-21 14:36:42 - example]        strings so you can look for strings that missed the
[2013-05-21 14:36:42 - example]        internationalization process.  For example:
[2013-05-21 14:36:42 - example]             port,land,zz_ZZ
[2013-05-21 14:36:42 - example]    -d  one or more device assets to include, separated by commas
[2013-05-21 14:36:42 - example]    -f  force overwrite of existing files
[2013-05-21 14:36:42 - example]    -g  specify a pixel tolerance to force images to grayscale, default 0
[2013-05-21 14:36:42 - example]    -j  specify a jar or zip file containing classes to include
[2013-05-21 14:36:42 - example]    -k  junk path of file(s) added
[2013-05-21 14:36:42 - example]    -m  make package directories under location specified by -J
[2013-05-21 14:36:42 - example]    -o  create overlay package (ie only resources; expects <overlay-package> in manifest)
[2013-05-21 14:36:42 - example]    -u  update existing packages (add new, replace older, remove deleted files)
[2013-05-21 14:36:42 - example]    -v  verbose output
[2013-05-21 14:36:42 - example]    -x  create extending (non-application) resource IDs
[2013-05-21 14:36:42 - example]    -z  require localization of resource attributes marked with
[2013-05-21 14:36:42 - example]        localization="suggested"
[2013-05-21 14:36:42 - example]    -A  additional directory in which to find raw asset files
[2013-05-21 14:36:42 - example]    -G  A file to output proguard options into.
[2013-05-21 14:36:42 - example]    -F  specify the apk file to output
[2013-05-21 14:36:42 - example]    -I  add an existing package to base include set
[2013-05-21 14:36:42 - example]    -J  specify where to output R.java resource constant definitions
[2013-05-21 14:36:42 - example]    -M  specify full path to AndroidManifest.xml to include in zip
[2013-05-21 14:36:42 - example]    -P  specify where to output public resource definitions
[2013-05-21 14:36:42 - example]    -S  directory in which to find resources.  Multiple directories will be scanned
[2013-05-21 14:36:42 - example]        and the first match found (left to right) will take precedence.
[2013-05-21 14:36:42 - example]    -0  specifies an additional extension for which such files will not
[2013-05-21 14:36:42 - example]        be stored compressed in the .apk.  An empty string means to not
[2013-05-21 14:36:42 - example]        compress any files at all.
[2013-05-21 14:36:42 - example]    --debug-mode
[2013-05-21 14:36:42 - example]        inserts android:debuggable="true" in to the application node of the
[2013-05-21 14:36:42 - example]        manifest, making the application debuggable even on production devices.
[2013-05-21 14:36:42 - example]    --min-sdk-version
[2013-05-21 14:36:42 - example]        inserts android:minSdkVersion in to manifest.  If the version is 7 or
[2013-05-21 14:36:42 - example]        higher, the default encoding for resources will be in UTF-8.
[2013-05-21 14:36:42 - example]    --target-sdk-version
[2013-05-21 14:36:42 - example]        inserts android:targetSdkVersion in to manifest.
[2013-05-21 14:36:42 - example]    --max-res-version
[2013-05-21 14:36:42 - example]        ignores versioned resource directories above the given value.
[2013-05-21 14:36:42 - example]    --values
[2013-05-21 14:36:42 - example]        when used with "dump resources" also includes resource values.
[2013-05-21 14:36:42 - example]    --version-code
[2013-05-21 14:36:42 - example]        inserts android:versionCode in to manifest.
[2013-05-21 14:36:42 - example]    --version-name
[2013-05-21 14:36:42 - example]        inserts android:versionName in to manifest.
[2013-05-21 14:36:42 - example]    --custom-package
[2013-05-21 14:36:42 - example]        generates R.java into a different package.
[2013-05-21 14:36:42 - example]    --extra-packages
[2013-05-21 14:36:42 - example]        generate R.java for libraries. Separate libraries with ':'.
[2013-05-21 14:36:42 - example]    --generate-dependencies
[2013-05-21 14:36:42 - example]        generate dependency files in the same directories for R.java and resource package
[2013-05-21 14:36:42 - example]    --auto-add-overlay
[2013-05-21 14:36:42 - example]        Automatically add resources that are only in overlays.
[2013-05-21 14:36:42 - example]    --preferred-configurations
[2013-05-21 14:36:42 - example]        Like the -c option for filtering out unneeded configurations, but
[2013-05-21 14:36:42 - example]        only expresses a preference.  If there is no resource available with
[2013-05-21 14:36:42 - example]        the preferred configuration then it will not be stripped.
[2013-05-21 14:36:42 - example]    --rename-manifest-package
[2013-05-21 14:36:42 - example]        Rewrite the manifest so that its package name is the package name
[2013-05-21 14:36:42 - example]        given here.  Relative class names (for example .Foo) will be
[2013-05-21 14:36:42 - example]        changed to absolute names with the old package so that the code
[2013-05-21 14:36:42 - example]        does not need to change.
[2013-05-21 14:36:42 - example]    --rename-instrumentation-target-package
[2013-05-21 14:36:42 - example]        Rewrite the manifest so that all of its instrumentation
[2013-05-21 14:36:42 - example]        components target the given package.  Useful when used in
[2013-05-21 14:36:42 - example]        conjunction with --rename-manifest-package to fix tests against
[2013-05-21 14:36:42 - example]        a package that has been renamed.
[2013-05-21 14:36:42 - example]    --product
[2013-05-21 14:36:42 - example]        Specifies which variant to choose for strings that have
[2013-05-21 14:36:42 - example]        product variants
[2013-05-21 14:36:42 - example]    --utf16
[2013-05-21 14:36:42 - example]        changes default encoding for resources to UTF-16.  Only useful when API
[2013-05-21 14:36:42 - example]        level is set to 7 or higher where the default encoding is UTF-8.
[2013-05-21 14:36:42 - example]    --non-constant-id
[2013-05-21 14:36:42 - example]        Make the resources ID non constant. This is required to make an R java class
[2013-05-21 14:36:42 - example]        that does not contain the final value but is used to make reusable compiled
[2013-05-21 14:36:42 - example]        libraries that need to access resources.
[2013-05-21 14:36:42 - example]    --ignore-assets
[2013-05-21 14:36:42 - example]        Assets to be ignored. Default pattern is:
[2013-05-21 14:36:42 - example]        !.svn:!.git:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~
[2013-05-21 14:36:42-示例]错误:未知选项“--输出文本符号”
[2013-05-21 14:36:42-示例]Android资产打包工具
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]用法:
[2013-05-21 14:36:42-示例]aapt l[ist][v][a]文件。{zip,jar,apk}
[2013-05-21 14:36:42-示例]列出与Zip兼容的归档文件的内容。
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]aapt d[ump][--values]什么文件。{apk}[asset[asset…]]
[2013-05-21 14:36:42-示例]标签打印APK中声明的应用程序的标签和图标。
[2013-05-21 14:36:42-示例]权限打印来自APK的权限。
[2013-05-21 14:36:42-示例]资源从APK打印资源表。
[2013-05-21 14:36:42-示例]配置在APK中打印配置。
[2013-05-21 14:36:42-示例]xmltree打印给定资产中编译的XML。
[2013-05-21 14:36:42-示例]xmlstrings打印给定已编译xml资产的字符串。
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]aapt p[ackage][d][f][m][u][v][x][z][m AndroidManifest.xml]\
[2013-05-21 14:36:42-示例][0扩展名[-0扩展名…][-g公差][-j文件]\
[2013-05-21 14:36:42-示例][--调试模式][--最小sdk版本值][--目标sdk版本值]\
[2013-05-21 14:36:42-示例][--app version VAL][--app version name TEXT][--custom package VAL]\
[2013-05-21 14:36:42-示例][--重命名清单包]\
[2013-05-21 14:36:42-示例][--重命名检测目标包]\
[2013-05-21 14:36:42-示例][--utf16][--自动添加覆盖]\
[2013-05-21 14:36:42-示例][--max res version VAL]\
[2013-05-21 14:36:42-示例][I基本包[-I基本包…]\
[2013-05-21 14:36:42-示例][A资产源目录][G类列表文件][P公共定义文件]\
[2013-05-21 14:36:42-示例][-S资源源][-S资源源…]\
[2013-05-21 14:36:42-示例][F apk文件][J R-file-dir]\
[2013-05-2114:36:42-示例][--产品1,产品2,…]\
[2013-05-21 14:36:42-示例][c配置][首选配置]\
[2013-05-2114:36:42-示例][o]\
[2013-05-21 14:36:42-示例][原始文件目录[原始文件目录]…]
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]打包android资源。它将读取以下内容的资产和资源:
[2013-05-21 14:36:42-示例]随-M-A-S或原始文件dir参数一起提供。-J-P-F和-R
[2013-05-21 14:36:42-示例]选项控制输出哪些文件。
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]aapt r[emove][v]文件。{zip,jar,apk}file1[file2…]
[2013-05-21 14:36:42-示例]从与Zip兼容的存档中删除指定的文件。
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]aapt一个[dd][v]文件。{zip,jar,apk}file1[file2…]
[2013-05-21 14:36:42-示例]将指定的文件添加到与Zip兼容的存档中。
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]aapt c[runch][v]-S资源源-C输出文件夹。。。
[2013-05-21 14:36:42-示例]进行PNG预处理,并将结果存储在输出文件夹中。
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]aapt v[version]
[2013-05-21 14:36:42-示例]打印程序版本。
[2013-05-2114:36:42-示例]
[2013-05-21 14:36:42-示例]修改器:
[2013-05-21 14:36:42-示例]-列出时打印特定于Android的数据(资源、清单)
[2013-05-21 14:36:42-示例]-c指定要包括的配置。默认值为“全部”
[2013-05-21 14:36:42-示例]配置。参数的值应为逗号
[2013-05-21 14:36:42-示例]配置值的单独列表。应指定区域设置
[2013-05-21 14:36:42-示例]作为语言或语言区域对。一些例子:
[2013-05-21 14:36:42-示例]en
[2013-05-21 14:36:42-示例]英国港口
[2013-05-21 14:36:42-示例]美国内陆港口
[2013-05-21 14:36:42-示例]如果您将特殊区域设置zz_zz放在列表中,它将执行
[2013-05-21 14:36:42-示例]在默认区域设置上进行伪本地化,修改所有
[2013-05-21 14:36:42-示例]字符串,这样您就可以查找缺少
[2013-05-21 14:36:42-示例]国际化进程。例如:
[2013-05-21 14:36:42-示例]港口,陆地,zzzz
[2013-05-21 14:36:42-示例]-d要包括的一个或多个设备资产,用逗号分隔
[2013-05-21 14:36:42-示例]-f强制覆盖现有文件
[2013-05-21 14:36:42-示例]-g指定像素容差以强制图像为灰度,默认为0
[2013-05-21 14:36:42-示例]-j指定包含要包含的类的jar或zip文件
[2013-05-21 14:36:42-示例]-k已添加文件的垃圾路径
[2013-05-21 14:36:42-示例]-m在-J指定的位置下创建包目录
[2013-05-21 14:36:42-示例]-o创建覆盖包(即仅资源;预期在清单中)
[2013-05-21 14:36:42-示例]-u更新现有软件包(添加
<item name="android:id">@+id/calender</item>
android:title="@android:string/chat"
android:title="@string/chat"
<item
    android:id="@id/item_reset"
    android:title="Reset"
    android:showAsAction="ifRoom"/>
<item
    android:id="@+id/item_reset"
    android:title="Reset"
    android:showAsAction="ifRoom"/>
<item
        android:id="@+id/action_reply"
        android:orderInCategory="100"
        android:showAsAction="always"
        android:icon="@drawable/ic_action_reply"
        android:title="@string/action_reply"/>