Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

APK compiled with JavaFXPorts does not work

Ashley HalesFeb 19 2024

I have been trying to get a sample HelloWorld JavaFX app to work on Android for a while. I have managed to get past all the dependency issues etc and have compile the project into an APK with both JavaFXPorts and the new Gluon plugin. However when I try and run my APK on an Android device it always says 'There was a problem parsing the package'. Is there something I am doing wrong? The project runs fine on the desktop.

I first managed to compile the project with IntelliJ using the Gluon plugin on Ubuntu. However I have now moved to JavaFXPorts with Eclipse on Windows. I managed to get the project compile using a Java 8 SDK but the results are still incompatible with my devices. I am using Gradle to build the project and have been playing around with the buildToolsVersion, targetSdkVersion and compileSdkVersion. But JavaFXPorts requires buildToolsVersion of at least 26.0.2. I have an Android box with a Version string 6.0.1 and have been able to compile and run Android Apps created with the standard Android API v19 but no luck with JavaFX.

Comments
Post Details
Added on Feb 19 2024
4 comments
207 views