gpt4 book ai didi

java.io.FileNotFoundException : This file can not be opened as a file descriptor; it is probably compressed

转载 作者:IT老高 更新时间:2023-10-28 21:04:15 27 4
gpt4 key购买 nike

我正在从 android 编程音板。问题是有些声音有效,有些无效。这是我对不起作用的声音的回溯

05-31 13:23:04.227 18440 18603 W System.err: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
05-31 13:23:04.227 18440 18603 W System.err: at android.content.res.AssetManager.openAssetFd(Native Method)
05-31 13:23:04.227 18440 18603 W System.err: at android.content.res.AssetManager.openFd(AssetManager.java:331)
05-31 13:23:04.227 18440 18603 W System.err: at com.phonegap.AudioPlayer.startPlaying(AudioPlayer.java:201)
05-31 13:23:04.227 18440 18603 W System.err: at com.phonegap.AudioHandler.startPlayingAudio(AudioHandler.java:181)
05-31 13:23:04.235 18440 18603 W System.err: at com.phonegap.AudioHandler.execute(AudioHandler.java:64)
05-31 13:23:04.235 18440 18603 W System.err: at com.phonegap.api.PluginManager$1.run(PluginManager.java:86)
05-31 13:23:04.235 18440 18603 W System.err: at java.lang.Thread.run(Thread.java:1096)

有什么想法吗?

最佳答案

您可以为某些扩展禁用 Assets 压缩,如下所示:

android {
aaptOptions {
noCompress "pdf"
}
}

Source

关于java.io.FileNotFoundException : This file can not be opened as a file descriptor; it is probably compressed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6186866/

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