Running a standalone multi-dex jar on Android Kitkat -
i've been trying run java applications on android devices standalone jars (not apk's). went fine in beginning: used dex compiler android sdk, packed dex file jar, pushed device , used shell script (similar example in link) run it.
when included more libraries , hit 65k dex function limit, used --multi-dex flag dex compiler. compilation succeeded, , able run code on lollipop device. however, running exact same jar on kitkat gets following run-time exception:
java.lang.verifyerror: scala/none$ @ akka.actor.actorsystem$.<init>(actorsystem.scala:30) @ akka.actor.actorsystem$.<clinit>(actorsystem.scala) @ akka.actor.actorsystem.create(actorsystem.scala) @ com.example.myclass.calculate(myclass.java:185) @ com.example.main.main(main.java:16) @ com.android.internal.os.runtimeinit.nativefinishinit(native method) @ com.android.internal.os.runtimeinit.main(runtimeinit.java:243) @ dalvik.system.nativestart.main(native method)
i faced exact same problem when tried running same code apk, , solved adding line android manifest:
android:name="android.support.multidex.multidexapplication"
this isn't possible in current situation, since don't have manifest file.
how can still enable multidex support standalone jar? should add libraries compilation? should run jar differently?
thanks.
Comments
Post a Comment