java.lang.UnsupportedOperationException:AudioEffect:无效的参数操作

时间:2014-05-17 19:18:28

标签: java android audio equalizer audioeffect

我的应用程序每天都会报告这次崩溃,这导致很多卸载程序,我不喜欢,现在我到处寻找,我所知道的是它是一个非常广泛的问题,它也可能在Google方面存在问题,但我无法获得真正的答案或解决方案!所以这几乎是我的最后一次机会,因为就像我说的那样,它每天都会发生!

这是LogCat:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.simplistic.floating_equalizer/com.simplistic.floating_equalizer.MainActivity}: java.lang.UnsupportedOperationException: AudioEffect: invalid parameter operation
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2463)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2520)
at android.app.ActivityThread.access$600(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:5751)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsupportedOperationException: AudioEffect: invalid parameter operation
at android.media.audiofx.AudioEffect.checkStatus(AudioEffect.java:1244)
at android.media.audiofx.Equalizer.setBandLevel(Equalizer.java:230)
at com.simplistic.floating_equalizer.model.EqualizerApi.setBandLevel(EqualizerApi.java:122)
at com.simplistic.floating_equalizer.model.Profile.loadSettings(Profile.java:125)
at com.simplistic.floating_equalizer.MainActivity.onCreate(MainActivity.java:160)
at android.app.Activity.performCreate(Activity.java:5165)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1103)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2419)
... 11 more

非常感谢任何帮助!

感谢的

0 个答案:

没有答案