Ant Build Failed. Trouble with build-extras.xml

262 views
Skip to first unread message

jes...@gmail.com

unread,
Mar 5, 2014, 4:52:01 AM3/5/14
to javafx...@googlegroups.com
Hello everyone,

First of all, congratulations for your work, it is really inspiring :)

I got some error messages while trying to build an android package with ant from a simple javafx helloworld application.

Gradle seemed to work fine and project was successfully created.

All the proccess was made in a 32bit machine with Windows XP.

Unfortunately, ant gave the following output, any ideas?

Thanks in advance,
jespev

E:\NBJavafxProjects\ANDROIDPKG\HWAndroid>ant debug
Picked up _JAVA_OPTIONS: "-Xmx256M"
Buildfile: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.3.0
[checkenv] Installed at E:\Eclipse\AndroidSDK\adt-bundle-windows-x86-20130917\sdk

-setup:
[echo] Project Name: HWAndroid
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-check-jfx.uptodate:

-jfx.bootstrap:
[copy] Copying 12 files to E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\libs
[copy] Copying 2 files to E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\assets

-check-app.uptodate:

-app.bootstrap:
[mkdir] Created dir: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\app-libs
[copy] Copying 1 file to E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\app-libs

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 18.1.0
[echo] Resolving Build Target for HWAndroid...
[gettarget] Project Target: Android 4.4
[gettarget] API level: 19
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\bin\res
[mkdir] Created dir: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\bin\rsObj
[mkdir] Created dir: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\bin\rsLibs
[mkdir] Created dir: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\gen
[mkdir] Created dir: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\bin\classes
[mkdir] Created dir: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for HWAndroid...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 2 source files to E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\bin\classes

-post-compile:

-obfuscate:

-application.jar:
[jar] Building jar: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\app-libs\Appl
ication.jar

-pre-dex:
[jar] Updating jar: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\app-libs\Appl
ication.jar
[jar] Building jar: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\app-libs\Appl
ication_resources.jar
[copy] Copying 1 file to E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\assets
[jar] Building jar: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\app-libs\Application_classes.jar

-dex:
[exec] Picked up _JAVA_OPTIONS: "-Xmx256M"
[mkdir] Created dir: E:\NBJavafxProjects\ANDROIDPKG\HWAndroid\bin\app_dex
[exec] unknown option: --multi-dex
[exec] usage:
[exec] dx --dex [--debug] [--verbose] [--positions=<style>] [--no-locals]

[exec] [--no-optimize] [--statistics] [--[no-]optimize-list=<file>] [--no-strict]
[exec] [--keep-classes] [--output=<file>] [--dump-to=<file>] [--dump-width=<n>]
[exec] [--dump-method=<name>[*]] [--verbose-dump] [--no-files] [--core-library]
[exec] [--num-threads=<n>] [--incremental] [--force-jumbo]
[exec] [<file>.class | <file>.{zip,jar,apk} | <directory>] ...
[exec] Convert a set of classfiles into a dex file, optionally embedded in a
[exec] jar/zip. Output name must end with one of: .dex .jar .zip .apk.Positions
[exec] options: none, important, lines.
[exec] dx --annotool --annotation=<class> [--element=<element types>]
[exec] [--print=<print types>]
[exec] dx --dump [--debug] [--strict] [--bytes] [--optimize]
[exec] [--basic-blocks | --rop-blocks | --ssa-blocks | --dot] [--ssa-step=<step>]
[exec] [--width=<n>] [<file>.class | <file>.txt] ...
[exec] Dump classfiles, or transformations thereof, in a human-oriented format.
[exec] dx --find-usages <file.dex> <declaring type> <member>
[exec] Find references and declarations to a field or method.
[exec] declaring type: a class name in internal form, like Ljava/lang/Object;
[exec] member: a field or method name, like hashCode
[exec] dx -J<option> ... <arguments, in one of the above forms>
[exec] Pass VM-specific options to the virtual machine that runs dx.
[exec] dx --version
[exec] Print the version of this tool (1.7).
[exec] dx --help
[exec] Print this message.
[exec] Picked up _JAVA_OPTIONS: "-Xmx256M"

BUILD FAILED
E:\Javafx\dalvik-sdk\android-tools\build-extras.xml:117: The following error occurred while executing this line:
E:\Javafx\dalvik-sdk\android-tools\build-extras.xml:118: The following error occurred while executing this line:
E:\Javafx\dalvik-sdk\android-tools\build-extras.xml:128: The following error occurred while executing this line:
E:\Javafx\dalvik-sdk\android-tools\build-extras.xml:103: exec returned: 1

Total time: 15 seconds

jes...@gmail.com

unread,
Mar 5, 2014, 6:23:02 AM3/5/14
to javafx...@googlegroups.com, jes...@gmail.com
I already solve it using a newer version of android SDK.

jaol...@gmail.com

unread,
Jul 3, 2017, 8:15:44 AM7/3/17
to JavaFXAndroid, jes...@gmail.com
você conseguiu resolver?

Reply all
Reply to author
Forward
0 new messages