Android Studio setting and error

I am trying to set Android Studio(2.1ver) for OF(0.9.3).
I followed everything on this page (“android-studio setting guide”) but still has some problem.
(I did try Eclipse also but almost give up…)

It shows error message on Android Monitor when running some OFexamples,

05-17 13:58:26.499 23126-23126/cc.openframeworks.androidSwipeExample I/art: Late-enabling -Xcheck:jni
05-17 13:58:26.534 23126-23136/cc.openframeworks.androidSwipeExample I/art: Debugger is no longer active
05-17 13:58:28.405 23126-23126/cc.openframeworks.androidSwipeExample I/OF: static init
05-17 13:58:28.405 23126-23126/cc.openframeworks.androidSwipeExample I/OF: loading x86 library
05-17 13:58:28.408 23126-23126/cc.openframeworks.androidSwipeExample I/OF: failed x86 loading, trying neon detection
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_9-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_8-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_7-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_6-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_5-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_4-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_3-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_2-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_1-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_0-classes.dex”],nativeLibraryDirectories=[/vendor/lib, /system/lib, /vendor/lib, /system/lib]]] couldn’t find “libOFAndroidApp_x86.so”
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:988)
at cc.openframeworks.OFAndroid.(OFAndroid.java:1027)
at cc.openframeworks.androidSwipeExample.OFActivity.onCreate(OFActivity.java:18)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
05-17 13:58:28.409 23126-23126/cc.openframeworks.androidSwipeExample I/OF: failed neon detection, loading not-neon library
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_9-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_8-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_7-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_6-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_5-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_4-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_3-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_2-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_1-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_0-classes.dex”],nativeLibraryDirectories=[/vendor/lib, /system/lib, /vendor/lib, /system/lib]]] couldn’t find “libneondetection.so”
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:988)
at cc.openframeworks.OFAndroid.(OFAndroid.java:1033)
at cc.openframeworks.androidSwipeExample.OFActivity.onCreate(OFActivity.java:18)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
05-17 13:58:28.410 23126-23126/cc.openframeworks.androidSwipeExample D/AndroidRuntime: Shutting down VM
05-17 13:58:28.411 23126-23126/cc.openframeworks.androidSwipeExample E/AndroidRuntime: FATAL EXCEPTION: main
Process: cc.openframeworks.androidSwipeExample, PID: 23126
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_9-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_8-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_7-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_6-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_5-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_4-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_3-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_2-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_1-classes.dex”, dex file “/data/data/cc.openframeworks.androidSwipeExample/files/instant-run/dex/slice-slice_0-classes.dex”],nativeLibraryDirectories=[/vendor/lib, /system/lib, /vendor/lib, /system/lib]]] couldn’t find “libOFAndroidApp.so”
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:988)
at cc.openframeworks.OFAndroid.(OFAndroid.java:1044)
at cc.openframeworks.androidSwipeExample.OFActivity.onCreate(OFActivity.java:18)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

I found similar issue in fourm. And I thought this problem is about Debbuger as error message said, so I tried solution in this issue but still not working.
(Solution is add:

ABIS_TO_COMPILE_DEBUG = x86

in the “config.make” file in my example.)

What can I do more?:confused: Please help.
(Maybe I should change to Eclipse but it shows more horrible error message…)

Thanks

1 Like

same problem here! :confused:

I tried building the APK files and installing them on my phone and some examples worked
but whenever I try ADB ill get similar errors

Same here!
First there was a problem with compiling because of the “windows vs windows-x86-x64 make file” problem.