VerifyError when adding external libraries

33 views
Skip to first unread message

Andy Russell

unread,
Jul 8, 2015, 1:04:55 AM7/8/15
to javafx...@googlegroups.com
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.

Andy Russell

unread,
Jul 16, 2015, 9:54:31 PM7/16/15
to javafx...@googlegroups.com
Found the problem. You must have <application android:name="android.support.multidex.MultiDexApplication"> in your AndroidManifest (if you're using a custom Manifest).
Reply all
Reply to author
Forward
0 new messages