0
0

Hi there,
I am trying to use FMod for Android.
I am trying, as a first step, to build and execute the examples provided in the archive.
I tried unsuccessfully effects and dspcustom after importing and setting up FMOD_LIB & ANDROID_NDK_ROOT
[i:3l9vk8mm](as mentioned in the documentation)[/i:3l9vk8mm]

Am I missing something ?

My android setup is correct as I can build and execute some applications.
No specific warning/error displayed in the package file explorer

the console log output :

[code:3l9vk8mm]
15:06:12 **** Incremental Build of configuration Default for project org.fmod.dspcustom.Example ****
bash /Users/crapulax/Documents/DEVE/ANDROID/android-ndk-r8b/ndk-build all
Invalid attribute name:
android:versioncode
Install : libfmodexL.so => libs/armeabi/libfmodexL.so
Install : libmain.so => libs/armeabi/libmain.so
Install : libfmodexL.so => libs/armeabi-v7a/libfmodexL.so
Install : libmain.so => libs/armeabi-v7a/libmain.so
15:06:12 Build Finished (took 325ms)
[/code:3l9vk8mm]

the logcat output :

[code:3l9vk8mm]
11-08 15:07:07.078: I/dalvikvm(19763): Turning on JNI app bug workarounds for target SDK version 8...
11-08 15:07:07.123: E/dalvikvm(19763): Could not find class ‘org.fmod.FMODAudioDevice’, referenced from method org.fmod.dspcustom.Example.<init>
11-08 15:07:07.128: W/dalvikvm(19763): VFY: unable to resolve new-instance 20 (Lorg/fmod/FMODAudioDevice;) in Lorg/fmod/dspcustom/Example;
11-08 15:07:07.128: D/dalvikvm(19763): VFY: replacing opcode 0x22 at 0x0003
11-08 15:07:07.128: I/dalvikvm(19763): Could not find method org.fmod.FMODAudioDevice.start, referenced from method org.fmod.dspcustom.Example.onStart
11-08 15:07:07.128: W/dalvikvm(19763): VFY: unable to resolve virtual method 13: Lorg/fmod/FMODAudioDevice;.start ()V
11-08 15:07:07.128: D/dalvikvm(19763): VFY: replacing opcode 0x6e at 0x0005
11-08 15:07:07.128: I/dalvikvm(19763): Could not find method org.fmod.FMODAudioDevice.stop, referenced from method org.fmod.dspcustom.Example.onStop
11-08 15:07:07.128: W/dalvikvm(19763): VFY: unable to resolve virtual method 14: Lorg/fmod/FMODAudioDevice;.stop ()V
11-08 15:07:07.128: D/dalvikvm(19763): VFY: replacing opcode 0x6e at 0x000b
11-08 15:07:07.128: D/dalvikvm(19763): DexOpt: unable to opt direct call 0x000c at 0x05 in Lorg/fmod/dspcustom/Example;.<init>
11-08 15:07:07.128: D/dalvikvm(19763): Trying to load lib /data/data/org.fmod.dspcustom/lib/libfmodexL.so 0x414f6228
11-08 15:07:07.128: D/dalvikvm(19763): Added shared lib /data/data/org.fmod.dspcustom/lib/libfmodexL.so 0x414f6228
11-08 15:07:07.128: D/dalvikvm(19763): No JNI_OnLoad found in /data/data/org.fmod.dspcustom/lib/libfmodexL.so 0x414f6228, skipping init
11-08 15:07:07.128: D/dalvikvm(19763): Trying to load lib /data/data/org.fmod.dspcustom/lib/libmain.so 0x414f6228
11-08 15:07:07.128: D/dalvikvm(19763): Added shared lib /data/data/org.fmod.dspcustom/lib/libmain.so 0x414f6228
11-08 15:07:07.128: D/dalvikvm(19763): No JNI_OnLoad found in /data/data/org.fmod.dspcustom/lib/libmain.so 0x414f6228, skipping init
11-08 15:07:07.128: D/AndroidRuntime(19763): Shutting down VM
11-08 15:07:07.128: W/dalvikvm(19763): threadid=1: thread exiting with uncaught exception (group=0x40c451f8)
11-08 15:07:07.133: E/AndroidRuntime(19763): FATAL EXCEPTION: main
11-08 15:07:07.133: E/AndroidRuntime(19763): java.lang.NoClassDefFoundError: org.fmod.FMODAudioDevice
11-08 15:07:07.133: E/AndroidRuntime(19763): at org.fmod.dspcustom.Example.<init>(Example.java:13)
11-08 15:07:07.133: E/AndroidRuntime(19763): at java.lang.Class.newInstanceImpl(Native Method)
11-08 15:07:07.133: E/AndroidRuntime(19763): at java.lang.Class.newInstance(Class.java:1319)
11-08 15:07:07.133: E/AndroidRuntime(19763): at android.app.Instrumentation.newActivity(Instrumentation.java:1026)
11-08 15:07:07.133: E/AndroidRuntime(19763): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1883)
11-08 15:07:07.133: E/AndroidRuntime(19763): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1993)
11-08 15:07:07.133: E/AndroidRuntime(19763): at android.app.ActivityThread.access$600(ActivityThread.java:127)
11-08 15:07:07.133: E/AndroidRuntime(19763): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1159)
11-08 15:07:07.133: E/AndroidRuntime(19763): at android.os.Handler.dispatchMessage(Handler.java:99)
11-08 15:07:07.133: E/AndroidRuntime(19763): at android.os.Looper.loop(Looper.java:137)
11-08 15:07:07.133: E/AndroidRuntime(19763): at android.app.ActivityThread.main(ActivityThread.java:4507)
11-08 15:07:07.133: E/AndroidRuntime(19763): at java.lang.reflect.Method.invokeNative(Native Method)
11-08 15:07:07.133: E/AndroidRuntime(19763): at java.lang.reflect.Method.invoke(Method.java:511)
11-08 15:07:07.133: E/AndroidRuntime(19763): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
11-08 15:07:07.133: E/AndroidRuntime(19763): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
11-08 15:07:07.133: E/AndroidRuntime(19763): at dalvik.system.NativeStart.main(Native Method)
[/code:3l9vk8mm]

  • You must to post comments
0
0

Can you double check the FMOD_LIB classpath variable, it should point to fmodex.jar.
The error you are getting (java.lang.NoClassDefFoundError: org.fmod.FMODAudioDevice) looks like Java cannot find the FMODAudioDevice class which is in that jar.

  • You must to post comments
0
0

The variable was defined but not checked ;o(

Now the catlog looks better

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.