Hi,
I’m just getting started with Corona Enterprise and decided to try to build SimpleLuaExtension sample
before trying anything else. But unfortunately I just can’t get it to work. Whenever I run the application
on emulator / device it will give same error about UnsatisfiedLinkError:
09-02 17:51:14.056: W/dalvikvm(932): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/ansca/corona/JavaToNativeShim; 09-02 17:51:14.066: W/dalvikvm(932): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/ansca/corona/CoronaEnvironment; 09-02 17:51:14.066: D/AndroidRuntime(932): Shutting down VM 09-02 17:51:14.066: W/dalvikvm(932): threadid=1: thread exiting with uncaught exception (group=0x414c4700) 09-02 17:51:14.076: E/AndroidRuntime(932): FATAL EXCEPTION: main 09-02 17:51:14.076: E/AndroidRuntime(932): java.lang.UnsatisfiedLinkError: Couldn't load lua from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mycompany.simpleluaextension-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.mycompany.simpleluaextension-1, /system/lib]]]: findLibrary returned null 09-02 17:51:14.076: E/AndroidRuntime(932): at java.lang.Runtime.loadLibrary(Runtime.java:355) 09-02 17:51:14.076: E/AndroidRuntime(932): at java.lang.System.loadLibrary(System.java:525) 09-02 17:51:14.076: E/AndroidRuntime(932): at com.ansca.corona.JavaToNativeShim.\<clinit\>(JavaToNativeShim.java:95) 09-02 17:51:14.076: E/AndroidRuntime(932): at com.ansca.corona.CoronaEnvironment.setLuaErrorHandler(CoronaEnvironment.java:373) 09-02 17:51:14.076: E/AndroidRuntime(932): at com.ansca.corona.CoronaEnvironment.\<clinit\>(CoronaEnvironment.java:41) 09-02 17:51:14.076: E/AndroidRuntime(932): at com.mycompany.simpleluaextension.CoronaApplication.onCreate(CoronaApplication.java:16) 09-02 17:51:14.076: E/AndroidRuntime(932): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) 09-02 17:51:14.076: E/AndroidRuntime(932): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4444) 09-02 17:51:14.076: E/AndroidRuntime(932): at android.app.ActivityThread.access$1300(ActivityThread.java:141) 09-02 17:51:14.076: E/AndroidRuntime(932): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) 09-02 17:51:14.076: E/AndroidRuntime(932): at android.os.Handler.dispatchMessage(Handler.java:99) 09-02 17:51:14.076: E/AndroidRuntime(932): at android.os.Looper.loop(Looper.java:137) 09-02 17:51:14.076: E/AndroidRuntime(932): at android.app.ActivityThread.main(ActivityThread.java:5103) 09-02 17:51:14.076: E/AndroidRuntime(932): at java.lang.reflect.Method.invokeNative(Native Method) 09-02 17:51:14.076: E/AndroidRuntime(932): at java.lang.reflect.Method.invoke(Method.java:525) 09-02 17:51:14.076: E/AndroidRuntime(932): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) 09-02 17:51:14.076: E/AndroidRuntime(932): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 09-02 17:51:14.076: E/AndroidRuntime(932): at dalvik.system.NativeStart.main(Native Method)
I use enterprise build 1061 and my emulator running Android 4.3 and my device is LG Optimus 2x running Cyanogenmod 10.
I really have no idea what’s causing this error.
Thanks.