当我打开,退出并重新打开应用程序时,有时会发生这种情况。我的问题是我忘记在SoundManager上运行清理:
public static void cleanup() { mSoundPool.release(); mSoundPool = null; mSoundPoolMap.clear(); mAudioManager.unloadSoundEffects(); _instance = null;}
您必须在内存中运行某些内容,现在已经运行了两次。
解决方法在Android平台的应用程序中运行测试时出现错误:
java.lang.RuntimeException: Could not read input channel file descriptors from parcel.at android.view.InputChannel.nativeReadFromParcel(Native Method)at android.view.InputChannel.readFromParcel(InputChannel.java:135)at android.view.IWindowSession$Stub$Proxy.add(IWindowSession.java:523)at android.view.ViewRootImpl.setView(ViewRootImpl.java:481)at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:301)at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215)at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140)at android.view.Window$LocalWindowManager.addView(Window.java:537)at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2507)at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1986)at android.app.ActivityThread.access$600(ActivityThread.java:123)at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)at android.os.Handler.dispatchMessage(Handler.java:99)at android.os.Looper.loop(Looper.java:137)at android.app.ActivityThread.main(ActivityThread.java:4424)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:803)at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:570)at dalvik.system.NativeStart.main(Native Method)
我不知道,但我认为这可能是Android平台中的错误?您认为这可能是什么?