Recently I've been trying to add some external libraries to my app (the most recent being Google Play Services, but I get the same issue with Joda-Time). After adding the libraries, the app compiles properly, and works fine on my Lollipop device (Nexus 7 2013). However, when running the app on my KitKat device (Moto X 2013), I get the following stack trace immediately:
E/AndroidRuntime(23872): java.lang.VerifyError: javafxports/android/FXDalvikEntity
E/AndroidRuntime(23872): at javafxports.android.FXActivity.onCreate(FXActivity.java:127)
E/AndroidRuntime(23872): at android.app.Activity.performCreate(Activity.java:5248)
E/AndroidRuntime(23872): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
E/AndroidRuntime(23872): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)
E/AndroidRuntime(23872): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
E/AndroidRuntime(23872): at android.app.ActivityThread.access$800(ActivityThread.java:139)
E/AndroidRuntime(23872): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
E/AndroidRuntime(23872): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(23872): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(23872): at android.app.ActivityThread.main(ActivityThread.java:5086)
E/AndroidRuntime(23872): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(23872): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(23872): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime(23872): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime(23872): at dalvik.system.NativeStart.main(Native Method)
I've tried setting my minSdkVersion and targetSdkVersion to every value I can think of, and I've ensured that the libraries are linked in properly. Has anyone else encountered this issue, or know what additional steps I could try? Thanks.