1

jspeex.jar当我尝试编译时,我在 android 中使用它会引发错误

12-01 11:30:58.998: E/AndroidRuntime(17989): java.lang.NoClassDefFoundError: org.xiph.speex.SpeexEncoder

在此链接中,他们建议使用 @DependsOn(value = {"jspeex"}) 但它显示错误。我在带有openjdk-6的ubuntu上使用eclipse。

我正在发布日志,它可以让您更好地了解我的问题

12-01 11:30:58.898: E/dalvikvm(17989): Could not find class 'org.xiph.speex.OggSpeexWriter', referenced from method com.samsung.sample.jspeex.JSpeexSampleActivity.encodeFile
12-01 11:30:58.898: W/dalvikvm(17989): VFY: unable to resolve new-instance 50 (Lorg/xiph/speex/OggSpeexWriter;) in Lcom/samsung/sample/jspeex/JSpeexSampleActivity;
12-01 11:30:58.898: W/dalvikvm(17989): VFY: unable to resolve virtual method 71: Lorg/xiph/speex/AudioFileWriter;.close ()V
12-01 11:30:58.898: W/dalvikvm(17989): VFY: unable to resolve virtual method 71: Lorg/xiph/speex/AudioFileWriter;.close ()V
12-01 11:30:58.898: W/dalvikvm(17989): VFY: unable to resolve virtual method 71: Lorg/xiph/speex/AudioFileWriter;.close ()V
12-01 11:30:58.908: W/dalvikvm(17989): VFY: unable to resolve virtual method 71: Lorg/xiph/speex/AudioFileWriter;.close ()V
12-01 11:30:58.908: E/dalvikvm(17989): Could not find class 'org.xiph.speex.SpeexEncoder', referenced from method com.samsung.sample.jspeex.JSpeexSampleActivity.initEncoder
12-01 11:30:58.908: W/dalvikvm(17989): VFY: unable to resolve new-instance 51 (Lorg/xiph/speex/SpeexEncoder;) in Lcom/samsung/sample/jspeex/JSpeexSampleActivity;
12-01 11:30:58.998: W/dalvikvm(17989): threadid=1: thread exiting with uncaught exception (group=0x400207d8)
12-01 11:30:58.998: E/AndroidRuntime(17989): FATAL EXCEPTION: main
12-01 11:30:58.998: E/AndroidRuntime(17989): java.lang.NoClassDefFoundError: org.xiph.speex.SpeexEncoder
12-01 11:30:58.998: E/AndroidRuntime(17989):    at com.samsung.sample.jspeex.JSpeexSampleActivity.initEncoder(JSpeexSampleActivity.java:99)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at com.samsung.sample.jspeex.JSpeexSampleActivity.onCreate(JSpeexSampleActivity.java:52)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2633)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at android.app.ActivityThread.access$2300(ActivityThread.java:126)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at android.os.Looper.loop(Looper.java:123)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at android.app.ActivityThread.main(ActivityThread.java:4633)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at java.lang.reflect.Method.invokeNative(Native Method)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at java.lang.reflect.Method.invoke(Method.java:521)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
12-01 11:30:58.998: E/AndroidRuntime(17989):    at dalvik.system.NativeStart.main(Native Method)

任何机构都可以帮我解决这个问题。提前致谢

4

0 回答 0