Jump to content
Poweramp

dfstudio

Approved Members
  • Content count

    2
  • Joined

  • Last visited

About dfstudio

  • Rank
    Newbie
  1. dfstudio

    Need help with compiling

    Thanks!
  2. Hi I need some help with eclipse and ant. I`ve managed to configure everything according to instructions (I`ve changed everything what was needed in AndroidManifesxml, Strings.xml and local.properties). But when compiling error appears. Something about --version code being not specified: ERROR: No argument supplied for '--version-code' option. In which file I have to set this --version-code parameter? Please help. Console log: Buildfile: F:\android\eclipse_worskpace\InfoActivity\build.xml -check-env: [checkenv] Android SDK Tools Revision 21.0.1 [checkenv] Installed at C:\Program Files (x86)\Android\android-sdk -setup: [echo] Project Name: Poweramp-Classic-Skin [gettype] Project Type: Application -pre-clean: clean: [delete] Deleting directory F:\android\eclipse_worskpace\InfoActivity\bin [delete] Deleting directory F:\android\eclipse_worskpace\InfoActivity\gen [getlibpath] Library dependencies: [getlibpath] No Libraries [subant] No sub-builds to iterate on -set-mode-check: -set-release-mode: -release-obfuscation-check: [echo] proguard.config is ${proguard.config} -build-setup: [echo] Resolving Build Target for Poweramp-Classic-Skin... [gettarget] Project Target: Android 2.2 [gettarget] API level: 8 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: F:\android\eclipse_worskpace\InfoActivity\bin [mkdir] Created dir: F:\android\eclipse_worskpace\InfoActivity\bin\res [mkdir] Created dir: F:\android\eclipse_worskpace\InfoActivity\gen [mkdir] Created dir: F:\android\eclipse_worskpace\InfoActivity\bin\classes [mkdir] Created dir: F:\android\eclipse_worskpace\InfoActivity\bin\dexedLibs [echo] ---------- [echo] Resolving Dependencies for Poweramp-Classic-Skin... [dependency] Ordered libraries: [dependency] [dependency] ------------------ [dependency] API<=15: Adding annotations.jar to the classpath. [echo] ---------- [echo] Building Libraries with 'release'... [subant] No sub-builds to iterate on -pre-build: -code-gen: [echo] SKIN: Generating R.java / Manifest.java from the resources... -pre-compile: -compile: [javac] Compiling 2 source files to F:\android\eclipse_worskpace\InfoActivity\bin\classes -post-compile: -obfuscate: -dex: [dex] input: F:\android\eclipse_worskpace\InfoActivity\bin\classes [dex] input: C:\Program Files (x86)\Android\android-sdk\tools\support\annotations.jar [dex] Pre-Dexing C:\Program Files (x86)\Android\android-sdk\tools\support\annotations.jar -> annotations-62bab95d6948a2db17bbc7976160b014.jar [dex] Converting compiled files and external libraries into F:\android\eclipse_worskpace\InfoActivity\bin\classes.dex... [dx] Merged dex A (10 defs/9,1KiB) with dex B (2 defs/1,1KiB). Result is 12 defs/11,1KiB. Took 0,0s -package-resources: [echo] SKIN: Packaging resources [exec] ERROR: No argument supplied for '--version-code' option [exec] Android Asset Packaging Tool [exec] Usage: [exec] aapt l[ist] [-v] [-a] file.{zip,jar,apk} [exec] List contents of Zip-compatible archive. [exec] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]] [exec] badging Print the label and icon for the app declared in APK. [exec] permissions Print the permissions from the APK. [exec] resources Print the resource table from the APK. [exec] configurations Print the configurations in the APK. [exec] xmltree Print the compiled xmls in the given assets. [exec] xmlstrings Print the strings of the given compiled xml assets. [exec] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ [exec] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ [exec] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ [exec] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ [exec] [--rename-manifest-package PACKAGE] \ [exec] [--rename-instrumentation-target-package PACKAGE] \ [exec] [--utf16] [--auto-add-overlay] \ [exec] [--max-res-version VAL] \ [exec] [-I base-package [-I base-package ...]] \ [exec] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \ [exec] [-S resource-sources [-S resource-sources ...]] \ [exec] [-F apk-file] [-J R-file-dir] \ [exec] [--product product1,product2,...] \ [exec] [-c CONFIGS] [--preferred-configurations CONFIGS] \ [exec] [raw-files-dir [raw-files-dir] ...] \ [exec] [--output-text-symbols DIR] [exec] Package the android resources. It will read assets and resources that are [exec] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R [exec] options control which files are output. [exec] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...] [exec] Delete specified files from Zip-compatible archive. [exec] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...] [exec] Add specified files to Zip-compatible archive. [exec] aapt c[runch] [-v] -S resource-sources ... -C output-folder ... [exec] Do PNG preprocessing and store the results in output folder. [exec] aapt v[ersion] [exec] Print program version. [exec] Modifiers: [exec] -a print Android-specific data (resources, manifest) when listing [exec] -c specify which configurations to include. The default is all [exec] configurations. The value of the parameter should be a comma [exec] separated list of configuration values. Locales should be specified [exec] as either a language or language-region pair. Some examples: [exec] en [exec] port,en [exec] port,land,en_US [exec] If you put the special locale, zz_ZZ on the list, it will perform [exec] pseudolocalization on the default locale, modifying all of the [exec] strings so you can look for strings that missed the [exec] internationalization process. For example: [exec] port,land,zz_ZZ [exec] -d one or more device assets to include, separated by commas [exec] -f force overwrite of existing files [exec] -g specify a pixel tolerance to force images to grayscale, default 0 [exec] -j specify a jar or zip file containing classes to include [exec] -k junk path of file(s) added [exec] -m make package directories under location specified by -J [exec] -u update existing packages (add new, replace older, remove deleted files) [exec] -v verbose output [exec] -x create extending (non-application) resource IDs [exec] -z require localization of resource attributes marked with [exec] localization="suggested" [exec] -A additional directory in which to find raw asset files [exec] -G A file to output proguard options into. [exec] -F specify the apk file to output [exec] -I add an existing package to base include set [exec] -J specify where to output R.java resource constant definitions [exec] -M specify full path to AndroidManifest.xml to include in zip [exec] -P specify where to output public resource definitions [exec] -S directory in which to find resources. Multiple directories will be scanned [exec] and the first match found (left to right) will take precedence. [exec] -0 specifies an additional extension for which such files will not [exec] be stored compressed in the .apk. An empty string means to not [exec] compress any files at all. [exec] --debug-mode [exec] inserts android:debuggable="true" in to the application node of the [exec] manifest, making the application debuggable even on production devices. [exec] --min-sdk-version [exec] inserts android:minSdkVersion in to manifest. If the version is 7 or [exec] higher, the default encoding for resources will be in UTF-8. [exec] --target-sdk-version [exec] inserts android:targetSdkVersion in to manifest. [exec] --max-res-version [exec] ignores versioned resource directories above the given value. [exec] --values [exec] when used with "dump resources" also includes resource values. [exec] --version-code [exec] inserts android:versionCode in to manifest. [exec] --version-name [exec] inserts android:versionName in to manifest. [exec] --custom-package [exec] generates R.java into a different package. [exec] --extra-packages [exec] generate R.java for libraries. Separate libraries with ':'. [exec] --generate-dependencies [exec] generate dependency files in the same directories for R.java and resource package [exec] --auto-add-overlay [exec] Automatically add resources that are only in overlays. [exec] --preferred-configurations [exec] Like the -c option for filtering out unneeded configurations, but [exec] only expresses a preference. If there is no resource available with [exec] the preferred configuration then it will not be stripped. [exec] --rename-manifest-package [exec] Rewrite the manifest so that its package name is the package name [exec] given here. Relative class names (for example .Foo) will be [exec] changed to absolute names with the old package so that the code [exec] does not need to change. [exec] --rename-instrumentation-target-package [exec] Rewrite the manifest so that all of its instrumentation [exec] components target the given package. Useful when used in [exec] conjunction with --rename-manifest-package to fix tests against [exec] a package that has been renamed. [exec] --product [exec] Specifies which variant to choose for strings that have [exec] product variants [exec] --utf16 [exec] changes default encoding for resources to UTF-16. Only useful when API [exec] level is set to 7 or higher where the default encoding is UTF-8. [exec] --non-constant-id [exec] Make the resources ID non constant. This is required to make an R java class [exec] that does not contain the final value but is used to make reusable compiled [exec] libraries that need to access resources. [exec] --error-on-failed-insert [exec] Forces aapt to return an error if it fails to insert values into the manifest [exec] with --debug-mode, --min-sdk-version, --target-sdk-version --version-code [exec] and --version-name. [exec] Insertion typically fails if the manifest already defines the attribute. [exec] --output-text-symbols [exec] Generates a text file containing the resource symbols of the R class in the [exec] specified folder. [exec] --ignore-assets [exec] Assets to be ignored. Default pattern is: [exec] !.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~ BUILD FAILED F:\android\eclipse_worskpace\InfoActivity\build.xml:57: exec returned: 2 Total time: 3 seconds Strange thing, but when I delete two lines about "--version code" in build.xml everything is compiling ok!
×