Java.lang.noclassdeffounderror: Javafxports.android.fxdalvikentity$2
Solution 1:
This is what the exception your receive indicates:
Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found.
(source: https://docs.oracle.com/javase/7/docs/api/java/lang/NoClassDefFoundError.html)
This means, that the class being accessed (directly or indirectly) in your app does not exist in the runtime environment. So probably, you need to choose a newer version as your runtime environment. An alternative cause might be that dependencies you use are not there (I am not sure how Android applications deal with 3rd party dependencies) and you need to include them to your application.
Solution 2:
Don't have a solution yet but the cause of the issue is.
- The size of the application requires 2 dex files.
- Android SDK version 20 or less does not support multidex files naturally and requires an additional android library "multidex.jar". Implementing the multidex library requires additional code which is documented in detail at this link Using multidex when minSdkVersion is set to 20 or lower
- These detailed instructions do not consider the javafxports hierarchy and require that the class needed to implement the multidex functionality
extends android.support.multidex.MultiDexApplication
or overrides theApplication.attachBaseContext(...)
.
So the solution now seems to be to find a way to have the javafx.application.Application
call the Multidex.install(this);
leading to a new questioon on stackoverflow javafxports multidex minSdkVersion is set to 20 or less
Post a Comment for "Java.lang.noclassdeffounderror: Javafxports.android.fxdalvikentity$2"