iink SDK on Device

Answered

Cannot start test application

An app that was running a week ago doesn't start when I restart it.


There is an error immediately after starting

  

E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.example.myscript_test, PID: 9655

    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.myscript_test-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.myscript_test-1/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libc++_shared.so"

        at java.lang.Runtime.loadLibrary0(Runtime.java:984)

        at java.lang.System.loadLibrary(System.java:1530)

        at com.myscript.iink.NativeLibrary.clinit(NativeLibrary.java:17)

        at com.myscript.iink.NativeLibrary.<clinit>(NativeLibrary.java:26)

        at com.myscript.iink.NativeLibrary.init(NativeLibrary.java:34)

        at com.myscript.iink.NativeFunctions.<clinit>(NativeFunctions.java:21)

        at com.myscript.iink.NativeFunctions.createEngine(Native Method)

        at com.myscript.iink.Engine.<init>(Engine.java:20)

        at com.myscript.iink.Engine.create(Engine.java:39)

        at com.example.myscript_test.IInkApplication.getEngine(IInkApplication.java:15)

        at com.example.myscript_test.MainActivity.onCreate(MainActivity.java:79)

        at android.app.Activity.performCreate(Activity.java:6679)

        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)

        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)

        at android.app.ActivityThread.-wrap12(ActivityThread.java)

        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)

        at android.os.Handler.dispatchMessage(Handler.java:102)

        at android.os.Looper.loop(Looper.java:154)

        at android.app.ActivityThread.main(ActivityThread.java:6119)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

How can I fix it? 

 


Best Answer

Dear Yuta,


Thank you for contacting us.


Currently,  the libc++_shared.so is in the iink.aar we provide for the iink SDK. It  is provided for all the 4 architectures we provide (arm64-v8a,  armeabi-v7a, x86 and x86_64). You can extract the iink.aar to confirm.


It seems you are using the x86 architecture? Has the iink.aar been properly added to your project?

Can you try to clean then rebuild your project before restarting your application?


Best regards,


Gwenaëlle





Answer

Dear Yuta,


Thank you for contacting us.


Currently,  the libc++_shared.so is in the iink.aar we provide for the iink SDK. It  is provided for all the 4 architectures we provide (arm64-v8a,  armeabi-v7a, x86 and x86_64). You can extract the iink.aar to confirm.


It seems you are using the x86 architecture? Has the iink.aar been properly added to your project?

Can you try to clean then rebuild your project before restarting your application?


Best regards,


Gwenaëlle





1 person likes this

Gwenaelle @MyScript


Thank you for your reply.


It started successfully after the app was cleaned up.

Thank you very much.