Force Close - Cannot find juce_jni


#1

I've installed my Juce app in the emulator, but when I launch I get the following:

Caused by: java.lang.UnsatisfiedLinkError: Couldn't load juce_jni: findLibrary returned null

Outside of -std=gnu++0x, I don't think my Android config is "odd". I don't have any external libraries listed, or linker options. The produced .apk is about 5,858,055 bytes, is that about right?

Any idea?

 

 

Here's a chunk from the build process (not sure what's relevant):
...
     [exec] Compile++ arm    : juce_jni <= Main.cpp
     [exec] Compile++ arm    : juce_jni <= BinaryData.cpp
     [exec] Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
     [exec] Gdbsetup       : libs/armeabi/gdb.setup
     [exec] Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/gdbserver
     [exec] Gdbsetup       : libs/armeabi-v7a/gdb.setup
     [exec] SharedLibrary  : libjuce_jni.so
     [exec] SharedLibrary  : libjuce_jni.so
     [exec] Install        : libjuce_jni.so => libs/armeabi/libjuce_jni.so
     [exec] Install        : libjuce_jni.so => libs/armeabi-v7a/libjuce_jni.so

...

-package-resources:
     [aapt] Creating full resource package...
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating Trial-debug-unaligned.apk and signing it with a debug key...
-post-package:
-do-debug:
 [zipalign] Running zip align on final apk...
     [echo] Debug Package: .../Trial-debug.apk
[propertyfile] Creating new property file: .../Builds/Android/bin/build.prop
[propertyfile] Updating property file: .../Builds/Android/bin/build.prop
[propertyfile] Updating property file: .../Builds/Android/bin/build.prop
[propertyfile] Updating property file: .../Builds/Android/bin/build.prop
-post-build:
debug:
BUILD SUCCESSFUL

 


#2

This seems to work or not work depending on the emulator. At first I thought it had to do with arm vs. intel, but that doesn't actually appear to be the case. 


#3

Trying this on an actual device worked which I needed for mic support anyway. I'm not sure what's going on with the emulator versions.