current state of gradle script for Android?

tomas.brandalik tomas.brandalik at
Fri Aug 2 01:59:26 PDT 2013

On 08/01/2013 11:41 PM, Tobias Bley wrote:
> Thanks Tomas,
> after changing android.gradle script line "defineProperty("ANDROID_CROSS_TOOLS_VER", "arm-linux-androideabi-4.4.3“)“ to "defineProperty("ANDROID_CROSS_TOOLS_VER",
If toolchain version changed you just need to pass property 
> "arm-linux-androideabi-4.6“)“ and "def toolsPlatform = IS_WINDOWS ? "windows" : IS_MAC ? "macosx" : "linux-x86““ to „def toolsPlatform = IS_WINDOWS ? "windows" : IS_MAC ? "darwin-x86_64" : "linux-x86““ I could successfully build OpenJFX for Android von Mac OS X 10.9!
I will have a look at it.
> So now I’m trying to use Android Studio and the Emulator to start a JavaFX test application on Android. I tried to start my activity which extends from FXActivity class in „“ package. But how do I have to specify the JavaFX application class or main method? How do I have to bind the FXActivity with the JavaFX app (Stage / Application)? Is there any demo code available?
The fx project for android looks like usual android project except that 
it bundles with the vm image. All essential parameters (main class, 
debug port, parametets etc) are in AndroidManifest.xml
If you look at FXApplication you will realize that it installs vm first 
and then launches fx application on that vm. FXApplication activity does 
very little just prepares a surface where to draw opengl stuff. I'm sure 
you see the catch ... the vm is not available yet.
Another option to consider is to run on dalvik which I think is doable 
with a rewriting the launcher and using compatibility project javafx78 
(or how's that called).


> Best regards,
> Tobi
> Am 01.08.2013 um 16:00 schrieb tomas.brandalik <tomas.brandalik at>:
>> The latest tools should be ok sdk ver. 22 and ndk r9. I have  sdk 21.1 and ndk r7c and r8e.
>> -Tomas
>> On 08/01/2013 03:41 PM, Tobias Bley wrote:
>>> Which android SDK do I need? Could you please give me the URL to the correct android SDK and NDK?
>>> Thanks!
>>> Tobi
>>> Am 31.07.2013 um 16:42 schrieb tomas.brandalik <tomas.brandalik at>:
>>>> Hi Tobi,
>>>> it works on linux only right now.
>>>> Set properties for cross build and android sdk/ndk.
>>>> -PCOMPILE_TARGETS=android -PANDROID_SDK=/opt/android-sdk-linux -PANDROID_NDK=/opt/android-ndk-r7c -PCOMPILE_GSTREAMER=false -PSKIP_JAVADOC=true
>>>> Closed source parts web and font-t2k will be missing.
>>>> -Tomas
>>>> On 07/29/2013 11:22 PM, Tobias Bley wrote:
>>>>> Hi,
>>>>> can anyone say something about the current state of the gradle android support? Is it possible to build OpenJFX for Android now via gradle?
>>>>> Best regards,
>>>>> Tobi

More information about the openjfx-dev mailing list