gpt4 book ai didi

android - 终结器抛出的未捕获异常 java.lang.IllegalStateException : Binder has been finalized

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:47:12 30 4
gpt4 key购买 nike

这段代码

soundPool.release();
soundPool = null;

有时会产生这个错误:

Uncaught exception thrown by finalizer
java.lang.IllegalStateException: Binder has been finalized!
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at com.android.internal.app.IAppOpsService$Stub$Proxy.stopWatchingMode(IAppOpsService.java:431)
at android.media.SoundPool.release(SoundPool.java:195)
at android.media.SoundPool.finalize(SoundPool.java:204)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:217)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:200)
at java.lang.Thread.run(Thread.java:818)

我能做什么?

最佳答案

所以我认为这可能是一个 Android 错误。看起来很像这个问题,它在“ future 版本”中被标记为已修复:https://issuetracker.google.com/issues/37138597

关于android - 终结器抛出的未捕获异常 java.lang.IllegalStateException : Binder has been finalized,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43002231/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com