Couldn't find

I followed Android guide and I’m trying to build an example for Android (I tried AndroidEmptyExample and AndroidImageExample) with no success :confused:

I think the significant error is:

01-03 17:33:45.050 23325-23325/? E/AndroidRuntime: FATAL EXCEPTION: main
                                               Process: cc.openframeworks.androidImageExample, PID: 23325
                                               java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/cc.openframeworks.androidImageExample-2/base.apk"],nativeLibraryDirectories=[/data/app/cc.openframeworks.androidImageExample-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find ""

I feel stuck, any clue please ?

I tried with 0.9 Android release and with Master from git
I tried with Android emulator (arm ABI) and android device (android 5.0.2)
I’m using NDK r10e and osx 10.10.5


Hi, I’m still stuck with this problem when the app is launching
It’s probably an Android Studio config problem but I don’t find what and how to set this

Hey @talaron last week I compiled oF with Android Studio for the first time (on Ubuntu). I put SDK and NDK paths and I built androidAssimpExample. It was compiled just in the first try without any problem. Did you check the sdk and ndk paths?

Hi @Rancs
I followed this guide
I put NDK path in libs/openFrameworksCompiled/project/android/paths.make
I did not change some SDK path, where is it ?

I really don’t understand this Android Studio stuff yet :slightly_smiling:

Anyway when I have first tried to import my own project into AS, it told me to enter the SDK path into Graddle and I wrote it inside the Project-> file like that:

I remember I have also entered it to

File->Settings->Appearance & Behavior->System Settings->Android SDK

After my own project, I also tried to compile androidAssimpExample with AS. Now I look at the file of the aAE and it writes that “the file is generated automatically by Android Studio”. And the SDK path is correctly included inside this file.

In my side, androidAssimpExample compiled like a charm. That’s why I wrote you might need to check your SDK and NDK path settings.

I’ve checked it, it seems ok.
OF guide tells to put ndk path in paths.make

and sdk.dir is correctly set both in Settings and in

Compilation is OK, I miss during execution

I added ndk.dir=/Users/guillaume/Dev/android-ndk-r10e in
Still the same:
it compiles but fails at execution
couldn’t find “”

It looks like it is not compiling, it is not generating the file. Don’t you have any error/problem message on the console or logcat?

I’ve checked, I think it is compiling.
For instance, I get this line without errors output:

Compiling androidImageExample for Debug
make[1]: Entering directory     /Users/guillaume/Dev/OpenFrameworks/Master/examples/android/androidImageExample'
Linking libs/armeabi-v7a/ for android/armeabi-v7a
/Users/guillaume/Dev/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ -o libs/armeabi-v7a/  obj/android/armv7/Debug/src/main.o obj/android/armv7/Debug/src/ofApp.o 
[many .o and .a files] -lOpenSLES -lsupc++ -lz -lGLESv1_CM -lGLESv2 -llog -ldl -lm -lc -lgnustl_static -lgcc
make[1]: Leaving directory  /Users/guillaume/Dev/OpenFrameworks/Master/examples/android/androidImageExample'

And a proud BUILD SUCCESSFUL at the end

But my apk fil is 280K, I think it’s too light if it should embed OF lib

And I don’t have any .so files in my libs/ directories

I compiled the androidImageExample on Ubuntu now and it is compiled just in the first try. My apk is 17.3 MB.

I don’t understand why I don’t have any .so files in my libs/ directory.
I’m gonna try with eclipse

I keep getting the same error with Eclipse !

02-07 00:20:32.090: E/AndroidRuntime(24165): FATAL EXCEPTION: main
02-07 00:20:32.090: E/AndroidRuntime(24165): Process: cc.openframeworks.androidEmptyExample, PID: 24165
02-07 00:20:32.090: E/AndroidRuntime(24165): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/cc.openframeworks.androidEmptyExample-1/base.apk"],nativeLibraryDirectories=[/data/app/cc.openframeworks.androidEmptyExample-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find ""

libs/ folder doesn’t have any .so files and command “make AndroidDebug” is not returning an error but still doesn’t create any lib
I have to find what I’m doing wrong but feel a bit stuck

Which version of Java do you have installed?

I have Java 1.7 update 79

Well you give here the output of Logcat but I think you should have some error messages on the console. Can you please check the console output?

Here is what I get:

Android console :

[2016-02-07 11:28:25 - androidEmptyExample] ------------------------------
[2016-02-07 11:28:25 - androidEmptyExample] Android Launch!
[2016-02-07 11:28:25 - androidEmptyExample] adb is running normally.
[2016-02-07 11:28:25 - androidEmptyExample] Performing cc.openframeworks.androidEmptyExample.OFActivity activity launch
[2016-02-07 11:28:29 - androidEmptyExample] Uploading androidEmptyExample.apk onto device ‘H8WDU15902000198’
[2016-02-07 11:28:29 - androidEmptyExample] Installing androidEmptyExample.apk…
[2016-02-07 11:28:43 - androidEmptyExample] Success!
[2016-02-07 11:28:43 - androidEmptyExample] Starting activity cc.openframeworks.androidEmptyExample.OFActivity on device H8WDU15902000198
[2016-02-07 11:28:44 - androidEmptyExample] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=cc.openframeworks.androidEmptyExample/.OFActivity }

I am stuck me too. Maybe you can try compiling against Android-19.

Or maybe a MAC user might have a solution for this issue.

I tried both android-19 and android-22
Thanks Rancs for trying, I appreciate.
I will keep you informed if I find something …


Same problem here – did you find any solution ?

Many thanks