Juce Demo Mac on Android ExceptionInInitializerError


#1

Help,
I am attempting to build the Juce project “Juce Demo” on Mac and run on various platforms.
I have been successful getting the project to run on Mac OS X, Windows 8, and iOS.

I cannot get the project to run on Android.
It appears to build, but receives a “java.lang.ExceptionInInitializerError” at runtime.

I determined that the problem is probably related to the Android NDK, and I downloaded as follows:

However, I do not know how to specify the location of my install or the location of the NDK.

[list]
[]Do I have to set the environment variable “ANDROID_NDK_ROOT”? If so, what is the recommended method for setting it?[/]
[]Do I have to modify “local.properties”, which specifies incorrect directories for both “sdk.dir” and “ndk.dir”?[/]
[]Do I have to use Ant for my builds?[/]
[]Do I have to re-run the “Introjucer” to recreate these files? I ran the Introjucer only to download that latest “juce” directory.[/]
[]What else can I do to run “Juce Demo” without the “ExceptionInInitializerError”?[/][/list]

Here is he LogCat:

04-18 17:13:58.878: W/dalvikvm(2124): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/juce/JuceDemo;
04-18 17:13:58.878: W/dalvikvm(2124): Class init failed in newInstance call (Lcom/juce/JuceDemo;)
04-18 17:13:58.878: W/dalvikvm(2124): threadid=1: thread exiting with uncaught exception (group=0x4147b438)
04-18 17:13:58.898: E/AndroidRuntime(2124): FATAL EXCEPTION: main
04-18 17:13:58.898: E/AndroidRuntime(2124): java.lang.ExceptionInInitializerError
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at java.lang.Class.newInstanceImpl(Native Method)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at java.lang.Class.newInstance(Class.java:1319)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2025)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at android.app.ActivityThread.access$700(ActivityThread.java:143)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at android.os.Looper.loop(Looper.java:137)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at android.app.ActivityThread.main(ActivityThread.java:4953)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at java.lang.reflect.Method.invokeNative(Native Method)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at java.lang.reflect.Method.invoke(Method.java:511)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at dalvik.system.NativeStart.main(Native Method)
04-18 17:13:58.898: E/AndroidRuntime(2124): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load juce_jni: findLibrary returned null
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at java.lang.Runtime.loadLibrary(Runtime.java:365)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at java.lang.System.loadLibrary(System.java:535)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	at com.juce.JuceDemo.<clinit>(JuceDemo.java:55)
04-18 17:13:58.898: E/AndroidRuntime(2124): 	... 15 more

Thanks for your help!