Cannot Install Javafx App On Android X86_64
Solution 1:
First of all, under mainClassName
you should add the name of you main class (let say JavaFXApp
), including the package. something like this:
mainClassName = 'com.superflush.java.JavaFXApp'
Inside android
, you don't need the applicationPackage
line.
Once you have successfully built your apk, if you install it on your device, try to run it. Keep it connected, and run adb logcat
on the command line to see all the output and find any possible exception, if it doesn't work.
EDIT
Based on the last changes on the OP answer, this is a more proper answer.
For starters, the Main java class should be inside a package properly named. You must follow Android package name convention rules, so something like this will work:
package com.julioqc.superflush;
Also note, you will find your main class under these folders:
src/main/java/com/julioqc/superFlush/Main.java
(Note main/java
is not part of the name of the package).
Accordingly, you should have your resources under the same structure of folders:
src/main/resources/com/julioqc/superFlush/application.csssrc/main/resources/com/julioqc/superFlush/Image.jpg ...
Finally, this should be the Build.gradle file:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b10'
}
}
apply plugin: 'org.javafxports.jfxmobile'
mainClassName = 'com.julioqc.superflush.Main'
repositories {
jcenter()
}
jfxmobile {
ios {
forceLinkClasses = ['com.julioqc.superflush.**.*']
}
android {
androidSdk = 'C:/Users/<user>/AppData/Local/Android/android-sdk'
}
}
Solution 2:
It is a x86_64 so I suspect that might be an issue but im not sure how to diagnose.
To diagnose why an app is not installing, execute an install using the adb via the command prompt
adb install myapp.apk
You will get output indicating if the install on the device has failed with a reason for the failure.
If your app is installing correctly on ARM devices but not x86 devices then it is likely your adb is not shipping all the required native libraries. If this is the case then the adb install command will return the error INSTALL_FAILED_NO_MATCHING_ABIS
Post a Comment for "Cannot Install Javafx App On Android X86_64"