Advertisement
Guest User

ant debug [aapt] ERROR: Unknown option '--generate-dependenc

a guest
Nov 5th, 2011
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.68 KB | None | 0 0
  1. $ ant debug
  2. Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=lcd
  3. Buildfile: /home/wforan1/Dropbox/java/HelloWorld/build.xml
  4.  
  5. -set-mode-check:
  6.  
  7. -set-debug-files:
  8.  
  9. -set-debug-mode:
  10.  
  11. -debug-obfuscation-check:
  12.  
  13. -setup:
  14. [echo] Gathering info for HelloWorldActivity...
  15. [setup] Android SDK Tools Revision 15
  16. [setup] Project Target: Android 3.2
  17. [setup] API level: 13
  18. [setup]
  19. [setup] ------------------
  20. [setup] Resolving library dependencies:
  21. [setup] No library dependencies.
  22. [setup]
  23. [setup] ------------------
  24. [setup]
  25. [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions.
  26.  
  27. -build-setup:
  28. [echo] Creating output directories if needed...
  29. [mkdir] Created dir: /home/wforan1/Dropbox/java/HelloWorld/bin/res
  30. [mkdir] Created dir: /home/wforan1/Dropbox/java/HelloWorld/gen
  31. [mkdir] Created dir: /home/wforan1/Dropbox/java/HelloWorld/bin/classes
  32.  
  33. -pre-build:
  34.  
  35. -code-gen:
  36. [echo] ----------
  37. [echo] Handling aidl files...
  38. [aidl] No aidl files to compile.
  39. [echo] ----------
  40. [echo] Handling RenderScript files...
  41. [renderscript] No renderscript files to compile.
  42. [echo] ----------
  43. [echo] Handling Resources...
  44. [aapt] Generating resource IDs...
  45. [aapt] ERROR: Unknown option '--generate-dependencies'
  46. [aapt] Android Asset Packaging Tool
  47. [aapt]
  48. [aapt] Usage:
  49. [aapt] aapt l[ist] [-v] [-a] file.{zip,jar,apk}
  50. [aapt] List contents of Zip-compatible archive.
  51. [aapt]
  52. [aapt] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
  53. [aapt] badging Print the label and icon for the app declared in APK.
  54. [aapt] permissions Print the permissions from the APK.
  55. [aapt] resources Print the resource table from the APK.
  56. [aapt] configurations Print the configurations in the APK.
  57. [aapt] xmltree Print the compiled xmls in the given assets.
  58. [aapt] xmlstrings Print the strings of the given compiled xml assets.
  59. [aapt]
  60. [aapt] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \
  61. [aapt] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \
  62. [aapt] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \
  63. [aapt] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \
  64. [aapt] [--rename-manifest-package PACKAGE] \
  65. [aapt] [--rename-instrumentation-target-package PACKAGE] \
  66. [aapt] [--utf16] [--auto-add-overlay] \
  67. [aapt] [--max-res-version VAL] \
  68. [aapt] [-I base-package [-I base-package ...]] \
  69. [aapt] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \
  70. [aapt] [-S resource-sources [-S resource-sources ...]] [-F apk-file] [-J R-file-dir] \
  71. [aapt] [--product product1,product2,...] \
  72. [aapt] [raw-files-dir [raw-files-dir] ...]
  73. [aapt]
  74. [aapt] Package the android resources. It will read assets and resources that are
  75. [aapt] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R
  76. [aapt] options control which files are output.
  77. [aapt]
  78. [aapt] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
  79. [aapt] Delete specified files from Zip-compatible archive.
  80. [aapt]
  81. [aapt] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
  82. [aapt] Add specified files to Zip-compatible archive.
  83. [aapt]
  84. [aapt] aapt v[ersion]
  85. [aapt] Print program version.
  86. [aapt]
  87. [aapt] Modifiers:
  88. [aapt] -a print Android-specific data (resources, manifest) when listing
  89. [aapt] -c specify which configurations to include. The default is all
  90. [aapt] configurations. The value of the parameter should be a comma
  91. [aapt] separated list of configuration values. Locales should be specified
  92. [aapt] as either a language or language-region pair. Some examples:
  93. [aapt] en
  94. [aapt] port,en
  95. [aapt] port,land,en_US
  96. [aapt] If you put the special locale, zz_ZZ on the list, it will perform
  97. [aapt] pseudolocalization on the default locale, modifying all of the
  98. [aapt] strings so you can look for strings that missed the
  99. [aapt] internationalization process. For example:
  100. [aapt] port,land,zz_ZZ
  101. [aapt] -d one or more device assets to include, separated by commas
  102. [aapt] -f force overwrite of existing files
  103. [aapt] -g specify a pixel tolerance to force images to grayscale, default 0
  104. [aapt] -j specify a jar or zip file containing classes to include
  105. [aapt] -k junk path of file(s) added
  106. [aapt] -m make package directories under location specified by -J
  107. [aapt] -u update existing packages (add new, replace older, remove deleted files)
  108. [aapt] -v verbose output
  109. [aapt] -x create extending (non-application) resource IDs
  110. [aapt] -z require localization of resource attributes marked with
  111. [aapt] localization="suggested"
  112. [aapt] -A additional directory in which to find raw asset files
  113. [aapt] -G A file to output proguard options into.
  114. [aapt] -F specify the apk file to output
  115. [aapt] -I add an existing package to base include set
  116. [aapt] -J specify where to output R.java resource constant definitions
  117. [aapt] -M specify full path to AndroidManifest.xml to include in zip
  118. [aapt] -P specify where to output public resource definitions
  119. [aapt] -S directory in which to find resources. Multiple directories will be scanned
  120. [aapt] and the first match found (left to right) will take precedence.
  121. [aapt] -0 specifies an additional extension for which such files will not
  122. [aapt] be stored compressed in the .apk. An empty string means to not
  123. [aapt] compress any files at all.
  124. [aapt] --debug-mode
  125. [aapt] inserts android:debuggable="true" in to the application node of the
  126. [aapt] manifest, making the application debuggable even on production devices.
  127. [aapt] --min-sdk-version
  128. [aapt] inserts android:minSdkVersion in to manifest. If the version is 7 or
  129. [aapt] higher, the default encoding for resources will be in UTF-8.
  130. [aapt] --target-sdk-version
  131. [aapt] inserts android:targetSdkVersion in to manifest.
  132. [aapt] --max-res-version
  133. [aapt] ignores versioned resource directories above the given value.
  134. [aapt] --values
  135. [aapt] when used with "dump resources" also includes resource values.
  136. [aapt] --version-code
  137. [aapt] inserts android:versionCode in to manifest.
  138. [aapt] --version-name
  139. [aapt] inserts android:versionName in to manifest.
  140. [aapt] --custom-package
  141. [aapt] generates R.java into a different package.
  142. [aapt] --auto-add-overlay
  143. [aapt] Automatically add resources that are only in overlays.
  144. [aapt] --rename-manifest-package
  145. [aapt] Rewrite the manifest so that its package name is the package name
  146. [aapt] given here. Relative class names (for example .Foo) will be
  147. [aapt] changed to absolute names with the old package so that the code
  148. [aapt] does not need to change.
  149. [aapt] --rename-instrumentation-target-package
  150. [aapt] Rewrite the manifest so that all of its instrumentation
  151. [aapt] components target the given package. Useful when used in
  152. [aapt] conjunction with --rename-manifest-package to fix tests against
  153. [aapt] a package that has been renamed.
  154. [aapt] --product
  155. [aapt] Specifies which variant to choose for strings that have
  156. [aapt] product variants
  157. [aapt] --utf16
  158. [aapt] changes default encoding for resources to UTF-16. Only useful when API
  159. [aapt] level is set to 7 or higher where the default encoding is UTF-8.
  160. [aapt] --non-constant-id
  161. [aapt] Make the resources ID non constant. This is required to make an R java class
  162. [aapt] that does not contain the final value but is used to make reusable compiled
  163. [aapt] libraries that need to access resources.
  164.  
  165. BUILD FAILED
  166. /opt/android-sdk/tools/ant/build.xml:539: The following error occurred while executing this line:
  167. /opt/android-sdk/tools/ant/build.xml:568: null returned: 2
  168.  
  169. Total time: 3 seconds
  170.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement