UnsatisfiedLinkError - Test on android simulator

Testing my app with a virtual android device made with AVD ( Android 2.3 ), on Application start I receive a Force Close window and adb logcat say that:

W/dalvikvm( 409): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/ansca/corona/CoronaActivity;
W/dalvikvm( 409): Class init failed in newInstance call (Lcom/ansca/corona/CoronaActivity;)
D/AndroidRuntime( 409): Shutting down VM
W/dalvikvm( 409): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 409): FATAL EXCEPTION: main
E/AndroidRuntime( 409): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 409): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime( 409): at java.lang.Class.newInstance(Class.java:1409)
E/AndroidRuntime( 409): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime( 409): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
E/AndroidRuntime( 409): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime( 409): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime( 409): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime( 409): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 409): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 409): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 409): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 409): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 409): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 409): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 409): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 409): Caused by: java.lang.UnsatisfiedLinkError: Couldn’t load lua: findLibrary returned null
E/AndroidRuntime( 409): at java.lang.Runtime.loadLibrary(Runtime.java:429)
E/AndroidRuntime( 409): at java.lang.System.loadLibrary(System.java:554)

E/AndroidRuntime( 409): at com.ansca.corona.CoronaActivity.(CoronaActivity.java:75)
E/AndroidRuntime( 409): … 15 more

The error seem to be “UnsatisfiedLinkError: Couldn’t load lua”.

Somebody have can imagine why and how to fix the problem ?

Thanks [import]uid: 138364 topic_id: 27781 reply_id: 327781[/import]

i have the same problem. i’ve tried to deploy to htc wildfire s (android 2.2) and got the same error/exception.
i’ve also deployed this build on htc one s (android 4.x) and it works.

htc wildfire s is armv6.
i think this is the problem? possible?

if yes - next question. how i can build myapps for “older” devices?

thank you,
Andreas Siebert [import]uid: 161125 topic_id: 27781 reply_id: 113942[/import]

Hi Andreas,

yes you are right the problem it’s exactly the ARMv6 processor.

The Ansca choose to develop just for ARMv7 or more.

The only way to build for ARMv6 it’s to Download and install an older version of Corona SDK from the daily builds.

The latest that work with ARMv6 it’s
https://developer.anscamobile.com/sites/default/files/CoronaSDK_2011.377.msi

But with it you can’t use Storyboard API and a lot of useful functions.

[import]uid: 138364 topic_id: 27781 reply_id: 114021[/import]

ok. thank you for the answer and the link!

[import]uid: 161125 topic_id: 27781 reply_id: 114086[/import]