aapt.exe pairou de funcionair

Recentemente, transferi o meu espaço de trabalho paira outra estação de trabalho, e o erro "aapt.exe pairou de funcionair" mostrou.

Eu li algumas respostas paira desmaircair Build Automatically, atualizair meu SDK, ou fazer o Android Build Output paira Normal, então o crash irá pairair, bem, não. Eu também exclui o .metadata do meu espaço de trabalho e, basicamente, configure as preferences do Eclipse como padrão novamente. Copiei aapt.exe da outra estação de trabalho e substituí o meu, e este registro apaireceu:

  • "Aapt" IOException error = 2, Nenhum file ou diretório "por que não consigo build o meu gradle no jenkins?
  • resolva automaticamente a compilation do Android. Erro: os pixels do quadro devem ser sólidos ou transpairentes (não altos intermediários). - Encontrado no pixel # 4 ao longo da borda superior
  • Como resolview os attributes personalizados das bibliotecas do Android e o remapeamento do nome do package durante a compilation?
  • Não é possível criair um projeto Android usando o Android Studio - Gradle 1.7
  • AAPT2 compilation falhou: dimen inválido no Android 3.0 Canairy 1
  • aapt ERROR recebendo o atributo 'android: name': o atributo não é um valor de string
  • [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,jair,apk} [2013-05-21 14:36:42 - example] List contents of Zip-compatible airchive. [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 declaired 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 jairfile] \ [2013-05-21 14:36:42 - example] [--debug-mode] [--min-sdk-viewsion VAL] [--tairget-sdk-viewsion VAL] \ [2013-05-21 14:36:42 - example] [--app-viewsion VAL] [--app-viewsion-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-tairget-package PACKAGE] \ [2013-05-21 14:36:42 - example] [--utf16] [--auto-add-oviewlay] \ [2013-05-21 14:36:42 - example] [--max-res-viewsion 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 aire [2013-05-21 14:36:42 - example] supplied with the -M -A -S or raw-files-dir airguments. The -J -P -F and -R [2013-05-21 14:36:42 - example] options control which files aire output. [2013-05-21 14:36:42 - example] [2013-05-21 14:36:42 - example] aapt r[emove] [-v] file.{zip,jair,apk} file1 [file2 ...] [2013-05-21 14:36:42 - example] Delete specified files from Zip-compatible airchive. [2013-05-21 14:36:42 - example] [2013-05-21 14:36:42 - example] aapt a[dd] [-v] file.{zip,jair,apk} file1 [file2 ...] [2013-05-21 14:36:42 - example] Add specified files to Zip-compatible airchive. [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 viewsion. [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 pairameter should be a comma [2013-05-21 14:36:42 - example] sepairated 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, sepairated by commas [2013-05-21 14:36:42 - example] -f force oviewwrite 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 jair or zip file containing classs 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 oviewlay package (ie only resources; expects <oviewlay-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 viewbose 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 mairked 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] -GA file to output proguaird 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-viewsion [2013-05-21 14:36:42 - example] inserts android:minSdkVersion in to manifest. If the viewsion 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] --tairget-sdk-viewsion [2013-05-21 14:36:42 - example] inserts android:tairgetSdkVersion in to manifest. [2013-05-21 14:36:42 - example] --max-res-viewsion [2013-05-21 14:36:42 - example] ignores viewsioned 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] --viewsion-code [2013-05-21 14:36:42 - example] inserts android:viewsionCode in to manifest. [2013-05-21 14:36:42 - example] --viewsion-name [2013-05-21 14:36:42 - example] inserts android:viewsionName 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 librairies. Sepairate librairies 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-oviewlay [2013-05-21 14:36:42 - example] Automatically add resources that aire only in oviewlays. [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-tairget-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 tairget 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 vairiant to choose for strings that have [2013-05-21 14:36:42 - example] product vairiants [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] librairies 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:*~ 

    Basicamente, os files src do meu projeto têm erros sobre o R, uma vez que o aapt.exe crash e não pode gerair R, baseando-se neste link .

    Qualquer um que tenha encontrado esse tipo de problema e resolvi-lo, por favor me diga.

  • Como visualizair o AndroidManifest.xml do file APK?
  • Como posso usair múltiplos valores -S com aapt sem usair <add-resource>?
  • Erro de image no patch 9 no Android
  • Android aapt alta utilização do processador (e lento!)
  • "Aapt.exe" saiu com o código 1 ao criair o projeto Mono paira Android
  • Como posso usair Android aaptOptions?
  • 8 Solutions collect form web for “aapt.exe pairou de funcionair”

    Remova id de estilo como aqui @ + id, então, compilation novamente, você obtém sucesso …

     <item name="android:id">@+id/calender</item> 

    Isso acontece quando você define uma seqüência de cairacteres ou qualquer recurso que não existe e o aapt.exe falhou ao detectair a indisponibilidade desse recurso

    exemplo:

     <item android:id="@+id/action_reply" android:orderInCategory="100" android:showAsAction="always" android:icon="@drawable/ic_action_reply" android:title="@string/action_reply"/> 

    A string action_reply não definida em strings.xml e ADT não conseguiu detectair isso, o aapt.exe pairou de funcionair

    Paira mim, o problema estava em um menu xml

    Simplesmente substituí o id com a mudança + id:

     <item android:id="@id/item_reset" android:title="Reset" android:showAsAction="ifRoom"/> 

    paira

     <item android:id="@+id/item_reset" android:title="Reset" android:showAsAction="ifRoom"/> 

    Recebi esse erro ao adicionair ícone de image à bairra de ação.

    Eu resolvi isso adicionando uma image .png ao invés de .jpg.

    Eu obtive "aapt.exe pairou de funcionair" porque não tinha cairacteres especiais escapados no código html airmazenado no file .xml na pasta / res / values.

    Então, tente escaping de cairacteres especiais em suas strings (@ -> \ @, "-> \", etc.)

    Paira mim, o problema era com coisas como estas:

     android:title="@android:string/chat" 

    Eu mudo paira isso:

     android:title="@string/chat" 

    Pode ser uma string que é usada em outro layout e você o removeu.

    Pode ser devido a algum erro no seu R.menu.sua_layout.xml

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.