Compiling Ensemble8 fails, because of dex-file method limit

Create issue
Issue #5 resolved
Stefan Fuchs created an issue

Being bold a tried to compile Ensemble8.jar for android (compiled from https://bitbucket.org/narya/jfx78). Note, that I had to add <arg line="-JXmx2g" /> to the invocation of the dx command in build-extras.xml to avoid an heap-space overflow.

As nearly expected I hit the android dex-file method limit. See logfile:

-dex: [pathconvert] Set property out.dex.jar.input.value = /home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/libs/jfxdvk.jar /home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/libs/jfxrt.jar /home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/libs/compat.jar /home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/libs/Ensemble8.jar [exec] Current OS is Linux [exec] Executing '/home/stefan/adt-bundle-linux-x86_64-20131030/sdk/build-tools/android-4.4/dx' with arguments: [exec] '-JXmx2g' [exec] '--dex' [exec] '--output=/home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/bin/classes.dex' [exec] '--core-library' [exec] '/home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/bin/classes' [exec] '/home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/libs/jfxdvk.jar' [exec] '/home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/libs/jfxrt.jar' [exec] '/home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/libs/compat.jar' [exec] '/home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/libs/Ensemble8.jar' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] warning: Ignoring InnerClasses attribute for an anonymous inner class [exec] (com.javafx.main.Main$1) that doesn't come with an [exec] associated EnclosingMethod attribute. This class was probably produced by a [exec] compiler that did not target the modern .class file format. The recommended [exec] solution is to recompile the class from source, using an up-to-date compiler [exec] and without specifying any "-target" type options. The consequence of ignoring [exec] this warning is that reflective operations on this class will incorrectly [exec] indicate that it is not an inner class. [exec] warning: Ignoring InnerClasses attribute for an anonymous inner class [exec] (com.javafx.main.Main$2) that doesn't come with an [exec] associated EnclosingMethod attribute. This class was probably produced by a [exec] compiler that did not target the modern .class file format. The recommended [exec] solution is to recompile the class from source, using an up-to-date compiler [exec] and without specifying any "-target" type options. The consequence of ignoring [exec] this warning is that reflective operations on this class will incorrectly [exec] indicate that it is not an inner class. [exec] [exec] trouble writing output: Too many method references: 69590; max is 65536. [exec] You may try using --multi-dex option. [exec] References by package: [exec] 3 android.app [exec] 1 android.content [exec] 1 android.content.pm [exec] 3 android.os [exec] 3 android.util [exec] 20 android.view [exec] 2 android.view.inputmethod [exec] 2 android.widget [exec] 41 com.javafx.main [exec] 14 com.sun.glass.events [exec] 685 com.sun.glass.ui [exec] 37 com.sun.glass.ui.accessible [exec] 8 com.sun.glass.ui.android [exec] 20 com.sun.glass.ui.delegate [exec] 424 com.sun.glass.ui.lens [exec] 9 com.sun.glass.utils [exec] 125 com.sun.javafx [exec] 41 com.sun.javafx.accessible [exec] 41 com.sun.javafx.accessible.providers [exec] 37 com.sun.javafx.accessible.utils [exec] 10 com.sun.javafx.animation [exec] 172 com.sun.javafx.application [exec] 1 com.sun.javafx.beans [exec] 2 com.sun.javafx.beans.event [exec] 572 com.sun.javafx.binding [exec] 63 com.sun.javafx.charts [exec] 770 com.sun.javafx.collections [exec] 567 com.sun.javafx.css [exec] 191 com.sun.javafx.css.converters [exec] 224 com.sun.javafx.css.parser [exec] 19 com.sun.javafx.cursor [exec] 8 com.sun.javafx.effect [exec] 40 com.sun.javafx.embed [exec] 133 com.sun.javafx.event [exec] 646 com.sun.javafx.font [exec] 115 com.sun.javafx.font.coretext [exec] 268 com.sun.javafx.font.directwrite [exec] 109 com.sun.javafx.font.freetype [exec] 1099 com.sun.javafx.geom [exec] 442 com.sun.javafx.geom.transform [exec] 52 com.sun.javafx.iio [exec] 20 com.sun.javafx.iio.bmp [exec] 35 com.sun.javafx.iio.common [exec] 40 com.sun.javafx.iio.gif [exec] 32 com.sun.javafx.iio.ios [exec] 29 com.sun.javafx.iio.jpeg [exec] 61 com.sun.javafx.iio.png [exec] 70 com.sun.javafx.image [exec] 343 com.sun.javafx.image.impl [exec] 14 com.sun.javafx.jmx [exec] 31 com.sun.javafx.logging [exec] 29 com.sun.javafx.media [exec] 55 com.sun.javafx.menu [exec] 33 com.sun.javafx.perf [exec] 55 com.sun.javafx.print [exec] 18 com.sun.javafx.property [exec] 46 com.sun.javafx.property.adapter [exec] 29 com.sun.javafx.robot [exec] 54 com.sun.javafx.robot.impl [exec] 26 com.sun.javafx.runtime [exec] 49 com.sun.javafx.runtime.async [exec] 2 com.sun.javafx.runtime.eula [exec] 180 com.sun.javafx.scene [exec] 149 com.sun.javafx.scene.control [exec] 77 com.sun.javafx.scene.control.accessible [exec] 916 com.sun.javafx.scene.control.behavior [exec] 4691 com.sun.javafx.scene.control.skin [exec] 3 com.sun.javafx.scene.control.skin.resources [exec] 25 com.sun.javafx.scene.input [exec] 107 com.sun.javafx.scene.layout.region [exec] 22 com.sun.javafx.scene.paint [exec] 5 com.sun.javafx.scene.shape [exec] 44 com.sun.javafx.scene.text [exec] 48 com.sun.javafx.scene.transform [exec] 79 com.sun.javafx.scene.traversal [exec] 5 com.sun.javafx.scene.web [exec] 4 com.sun.javafx.scene.web.behavior [exec] 169 com.sun.javafx.scene.web.skin [exec] 742 com.sun.javafx.sg.prism [exec] 66 com.sun.javafx.stage [exec] 148 com.sun.javafx.text [exec] 394 com.sun.javafx.tk [exec] 1080 com.sun.javafx.tk.quantum [exec] 110 com.sun.javafx.webkit [exec] 118 com.sun.javafx.webkit.drt [exec] 553 com.sun.javafx.webkit.prism [exec] 2 com.sun.javafx.webkit.prism.theme [exec] 223 com.sun.javafx.webkit.theme [exec] 103 com.sun.media.jfxmedia [exec] 35 com.sun.media.jfxmedia.control [exec] 20 com.sun.media.jfxmedia.effects [exec] 43 com.sun.media.jfxmedia.events [exec] 196 com.sun.media.jfxmedia.locator [exec] 11 com.sun.media.jfxmedia.logging [exec] 34 com.sun.media.jfxmedia.track [exec] 416 com.sun.media.jfxmediaimpl [exec] 28 com.sun.media.jfxmediaimpl.platform [exec] 107 com.sun.media.jfxmediaimpl.platform.gstreamer [exec] 106 com.sun.media.jfxmediaimpl.platform.ios [exec] 59 com.sun.media.jfxmediaimpl.platform.java [exec] 86 com.sun.media.jfxmediaimpl.platform.osx [exec] 208 com.sun.openpisces [exec] 73 com.sun.pisces [exec] 553 com.sun.prism [exec] 799 com.sun.prism.es2 [exec] 30 com.sun.prism.image [exec] 373 com.sun.prism.impl [exec] 9 com.sun.prism.impl.packrect [exec] 19 com.sun.prism.impl.paint [exec] 255 com.sun.prism.impl.ps [exec] 62 com.sun.prism.impl.shape [exec] 326 com.sun.prism.j2d [exec] 52 com.sun.prism.j2d.paint [exec] 137 com.sun.prism.j2d.print [exec] 70 com.sun.prism.paint [exec] 30 com.sun.prism.ps [exec] 228 com.sun.prism.shader [exec] 10 com.sun.prism.shape [exec] 315 com.sun.prism.sw [exec] 20 com.sun.scenario [exec] 159 com.sun.scenario.animation [exec] 185 com.sun.scenario.animation.shared [exec] 723 com.sun.scenario.effect [exec] 113 com.sun.scenario.effect.impl [exec] 3 com.sun.scenario.effect.impl.es2 [exec] 2 com.sun.scenario.effect.impl.hw [exec] 75 com.sun.scenario.effect.impl.prism [exec] 443 com.sun.scenario.effect.impl.prism.ps [exec] 49 com.sun.scenario.effect.impl.prism.sw [exec] 157 com.sun.scenario.effect.impl.state [exec] 2 com.sun.scenario.effect.impl.sw [exec] 507 com.sun.scenario.effect.impl.sw.java [exec] 530 com.sun.scenario.effect.impl.sw.sse [exec] 44 com.sun.scenario.effect.light [exec] 616 com.sun.webkit [exec] 4071 com.sun.webkit.dom [exec] 51 com.sun.webkit.event [exec] 395 com.sun.webkit.graphics [exec] 285 com.sun.webkit.network [exec] 14 com.sun.webkit.network.about [exec] 11 com.sun.webkit.network.data [exec] 122 com.sun.webkit.perf [exec] 44 com.sun.webkit.plugin [exec] 19 com.sun.webkit.text [exec] 5 de.fuchs [exec] 5 default [exec] 351 ensemble [exec] 270 ensemble.control [exec] 3 ensemble.generated [exec] 2 ensemble.playground [exec] 298 ensemble.samplepage [exec] 8 ensemble.samples.animation.interpolator [exec] 23 ensemble.samples.animation.timeline.timeline [exec] 14 ensemble.samples.animation.timeline.timelineevents [exec] 7 ensemble.samples.animation.transitions.fadetransition [exec] 7 ensemble.samples.animation.transitions.filltransition [exec] 7 ensemble.samples.animation.transitions.paralleltransition [exec] 7 ensemble.samples.animation.transitions.pathtransition [exec] 7 ensemble.samples.animation.transitions.pausetransition [exec] 7 ensemble.samples.animation.transitions.rotatetransition [exec] 7 ensemble.samples.animation.transitions.scaletransition [exec] 7 ensemble.samples.animation.transitions.sequentialtransition [exec] 7 ensemble.samples.animation.transitions.stroketransition [exec] 7 ensemble.samples.animation.transitions.translatetransition [exec] 29 ensemble.samples.canvas.fireworks [exec] 14 ensemble.samples.charts.area.audio [exec] 5 ensemble.samples.charts.area.chart [exec] 18 ensemble.samples.charts.area.curvefitted [exec] 5 ensemble.samples.charts.area.stacked [exec] 14 ensemble.samples.charts.bar.audio [exec] 5 ensemble.samples.charts.bar.chart [exec] 5 ensemble.samples.charts.bar.horizontal [exec] 5 ensemble.samples.charts.bar.image [exec] 5 ensemble.samples.charts.bar.stacked [exec] 6 ensemble.samples.charts.bubble.chart [exec] 55 ensemble.samples.charts.custom.candlestick [exec] 6 ensemble.samples.charts.line.category [exec] 5 ensemble.samples.charts.line.chart [exec] 14 ensemble.samples.charts.line.stock [exec] 6 ensemble.samples.charts.pie.chart [exec] 9 ensemble.samples.charts.pie.drilldown [exec] 16 ensemble.samples.charts.scatter.animated [exec] 5 ensemble.samples.charts.scatter.chart [exec] 27 ensemble.samples.concurrency.service [exec] 17 ensemble.samples.concurrency.task [exec] 5 ensemble.samples.controls.accordion [exec] 5 ensemble.samples.controls.button.colorbutton [exec] 6 ensemble.samples.controls.button.graphicbutton [exec] 5 ensemble.samples.controls.button.pillbutton [exec] 5 ensemble.samples.controls.checkbox [exec] 5 ensemble.samples.controls.choicebox [exec] 9 ensemble.samples.controls.colorpicker [exec] 6 ensemble.samples.controls.hyperlink [exec] 5 ensemble.samples.controls.listview.horizontallistview [exec] 13 ensemble.samples.controls.listview.listviewcellfactory [exec] 5 ensemble.samples.controls.listview.simplelistview [exec] 14 ensemble.samples.controls.menu [exec] 15 ensemble.samples.controls.pagination [exec] 5 ensemble.samples.controls.progressbar [exec] 10 ensemble.samples.controls.progressindicator [exec] 5 ensemble.samples.controls.radiobutton [exec] 20 ensemble.samples.controls.scrollbar [exec] 5 ensemble.samples.controls.splitpane.hiddensplitpane [exec] 40 ensemble.samples.controls.tab.tabpane [exec] 29 ensemble.samples.controls.table.tablecellfactory [exec] 9 ensemble.samples.controls.table.tableview [exec] 6 ensemble.samples.controls.text.advancedlabel [exec] 5 ensemble.samples.controls.text.insettext [exec] 23 ensemble.samples.controls.text.searchbox [exec] 6 ensemble.samples.controls.text.simplelabel [exec] 5 ensemble.samples.controls.text.textfield [exec] 65 ensemble.samples.controls.text.textvalidator [exec] 8 ensemble.samples.controls.togglebutton [exec] 6 ensemble.samples.controls.toolbar.styledtoolbar [exec] 5 ensemble.samples.controls.toolbar.toolbar [exec] 36 ensemble.samples.controls.treetableview [exec] 5 ensemble.samples.controls.treeview [exec] 36 ensemble.samples.fxml.fxmldemo [exec] 41 ensemble.samples.graphics.bouncingballs [exec] 178 ensemble.samples.graphics.brickbreaker [exec] 77 ensemble.samples.graphics.calc [exec] 7 ensemble.samples.graphics.colorfulcircles [exec] 30 ensemble.samples.graphics.digitalclock [exec] 46 ensemble.samples.graphics.displayshelf [exec] 5 ensemble.samples.graphics.effects.dropshadow [exec] 6 ensemble.samples.graphics.effects.gaussianblur [exec] 5 ensemble.samples.graphics.effects.innershadow [exec] 6 ensemble.samples.graphics.effects.reflection [exec] 6 ensemble.samples.graphics.effects.sepiatone [exec] 9 ensemble.samples.graphics.gauge [exec] 6 ensemble.samples.graphics.images.imagecreation [exec] 16 ensemble.samples.graphics.images.imageoperator [exec] 6 ensemble.samples.graphics.images.imageproperties [exec] 6 ensemble.samples.graphics.paints.color [exec] 6 ensemble.samples.graphics.paints.lineargradient [exec] 6 ensemble.samples.graphics.paints.radialgradient [exec] 61 ensemble.samples.graphics.puzzle [exec] 5 ensemble.samples.graphics.shapes.arc [exec] 5 ensemble.samples.graphics.shapes.circle [exec] 5 ensemble.samples.graphics.shapes.cubiccurve [exec] 5 ensemble.samples.graphics.shapes.ellipse [exec] 6 ensemble.samples.graphics.shapes.line [exec] 5 ensemble.samples.graphics.shapes.path [exec] 5 ensemble.samples.graphics.shapes.polygon [exec] 5 ensemble.samples.graphics.shapes.polyline [exec] 5 ensemble.samples.graphics.shapes.quadcurve [exec] 5 ensemble.samples.graphics.shapes.rectangle [exec] 79 ensemble.samples.graphics.stopwatch [exec] 11 ensemble.samples.graphics3d.cube [exec] 17 ensemble.samples.graphics3d.cubesystem [exec] 5 ensemble.samples.graphics3d.simple3dbox [exec] 29 ensemble.samples.graphics3d.xylophone [exec] 13 ensemble.samples.language.beans.changelistener [exec] 8 ensemble.samples.language.beans.stringbinding [exec] 16 ensemble.samples.language.collections.observablelist [exec] 6 ensemble.samples.layout.anchorpane [exec] 6 ensemble.samples.layout.borderpane [exec] 6 ensemble.samples.layout.flowpane [exec] 9 ensemble.samples.layout.gridpane [exec] 5 ensemble.samples.layout.hbox [exec] 5 ensemble.samples.layout.stackpane [exec] 6 ensemble.samples.layout.tilepane [exec] 5 ensemble.samples.layout.vbox [exec] 82 ensemble.samples.media.advancedmedia [exec] 54 ensemble.samples.media.alphamediaplayer [exec] 13 ensemble.samples.media.audioclip [exec] 78 ensemble.samples.media.overlaymediaplayer [exec] 73 ensemble.samples.media.streamingmediaplayer [exec] 6 ensemble.samples.scenegraph.events.cursor [exec] 39 ensemble.samples.scenegraph.events.gestureevent [exec] 16 ensemble.samples.scenegraph.events.keyevent [exec] 30 ensemble.samples.scenegraph.events.keystrokemotion [exec] 38 ensemble.samples.scenegraph.events.mouseevent [exec] 53 ensemble.samples.scenegraph.events.multitouch [exec] 8 ensemble.samples.scenegraph.node.customnode [exec] 5 ensemble.samples.scenegraph.node.nodeproperties [exec] 24 ensemble.samples.scenegraph.stage.advancedstage [exec] 8 ensemble.samples.scenegraph.stage.stage [exec] 5 ensemble.samples.text.bidi [exec] 6 ensemble.samples.text.textflow [exec] 9 ensemble.samples.web.htmleditor [exec] 11 ensemble.samples.web.webview [exec] 40 ensemble.search [exec] 10 ensemble.util [exec] 1 java.applet [exec] 58 java.awt [exec] 1 java.awt.font [exec] 58 java.awt.geom [exec] 24 java.awt.image [exec] 23 java.awt.print [exec] 5 java.beans [exec] 178 java.io [exec] 469 java.lang [exec] 14 java.lang.ref [exec] 34 java.lang.reflect [exec] 4 java.math [exec] 96 java.net [exec] 119 java.nio [exec] 10 java.nio.channels [exec] 13 java.nio.charset [exec] 4 java.nio.file [exec] 2 java.nio.file.attribute [exec] 22 java.security [exec] 73 java.text [exec] 408 java.util [exec] 85 java.util.concurrent [exec] 28 java.util.concurrent.atomic [exec] 8 java.util.concurrent.locks [exec] 6 java.util.jar [exec] 17 java.util.logging [exec] 10 java.util.regex [exec] 21 java.util.zip [exec] 813 javafx.animation [exec] 65 javafx.application [exec] 10 javafx.beans [exec] 1708 javafx.beans.binding [exec] 1204 javafx.beans.property [exec] 401 javafx.beans.property.adapter [exec] 68 javafx.beans.value [exec] 695 javafx.collections [exec] 99 javafx.collections.transformation [exec] 328 javafx.concurrent [exec] 180 javafx.css [exec] 51 javafx.event [exec] 6 javafx.fxml [exec] 229 javafx.geometry [exec] 259 javafx.print [exec] 2399 javafx.scene [exec] 165 javafx.scene.canvas [exec] 1675 javafx.scene.chart [exec] 6108 javafx.scene.control [exec] 613 javafx.scene.control.cell [exec] 1168 javafx.scene.effect [exec] 393 javafx.scene.image [exec] 603 javafx.scene.input [exec] 1971 javafx.scene.layout [exec] 775 javafx.scene.media [exec] 247 javafx.scene.paint [exec] 1609 javafx.scene.shape [exec] 518 javafx.scene.text [exec] 712 javafx.scene.transform [exec] 526 javafx.scene.web [exec] 539 javafx.stage [exec] 41 javafx.util [exec] 105 javafx.util.converter [exec] 62 javafxports.android [exec] 1 javax.annotation [exec] 6 javax.imageio [exec] 3 javax.net.ssl [exec] 8 javax.print [exec] 4 javax.print.attribute [exec] 19 javax.print.attribute.standard [exec] 14 javax.swing [exec] 3 javax.xml.parsers [exec] 15 netscape.javascript [exec] 2 org.apache.lucene [exec] 470 org.apache.lucene.analysis [exec] 151 org.apache.lucene.analysis.standard [exec] 122 org.apache.lucene.analysis.tokenattributes [exec] 10 org.apache.lucene.collation [exec] 236 org.apache.lucene.document [exec] 2159 org.apache.lucene.index [exec] 27 org.apache.lucene.messages [exec] 186 org.apache.lucene.queryParser [exec] 1624 org.apache.lucene.search [exec] 163 org.apache.lucene.search.function [exec] 45 org.apache.lucene.search.grouping [exec] 65 org.apache.lucene.search.payloads [exec] 305 org.apache.lucene.search.spans [exec] 381 org.apache.lucene.store [exec] 553 org.apache.lucene.util [exec] 1 org.w3c.dom [exec] 1 org.w3c.dom.events [exec] 4 org.w3c.dom.html [exec] 1 org.xml.sax.helpers [exec] 44 sun.misc [exec] 1 sun.net.www [exec] 18 sun.reflect [exec] 52 sun.reflect.misc [exec] 121 sun.util.logging

BUILD FAILED /home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/build-extras.xml:40: The following error occurred while executing this line: /home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/build-extras.xml:41: The following error occurred while executing this line: /home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/build-extras.xml:51: The following error occurred while executing this line: /home/stefan/eclipseworkspaces/Ensemble8Android/Ensemble8/build-extras.xml:26: exec returned: 2 at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at com.android.ant.IfElseTask.execute(IfElseTask.java:124) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at com.android.ant.IfElseTask.execute(IfElseTask.java:124) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at com.android.ant.IfElseTask.execute(IfElseTask.java:120) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Project should include a generic version of the solution posted here:
http://mail.openjdk.java.net/pipermail/openjfx-dev/2013-December/011765.html

Comments (10)

  1. Stefan Fuchs reporter

    Found out, that the linked solution is incomplete. It does only copy class-files to the apk-file. Other resources like images will not be included in the final apk file.

  2. Johan Vos

    Thanks for the patch, Stefan. It is in the repository now, and we'll make a new runtime build (3) soon. Excellent work.

  3. Mike Tallent

    How can the front end be changed so more projects inside ensemble8 can be easily seen to determine what's broken. Swiping barely works … few are exposed. Stefan?

  4. Stefan Fuchs reporter

    Well, Ensemble8 tries to detect, if it should be running in embedded mode - and failed on dalvik. I changed two lines of code from equals("arm") to startsWith("arm") and now the interface is much better. I updated the dropbox apk, so you can try it yourself.

  5. Johan Vos

    I've updated the code in android-graphics-rt as well (ensemble branch, will merge them later). Thanks for the fix.

  6. Log in to comment