FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
Android加载资源时报错。
因为非常见后缀名文件可能被压缩,具体参考:
解决办法,对该后缀名文件禁止用压缩:
在build.gradle中添加
android {
aaptOptions {
noCompress "ts"//你的文件后缀名
}
}
Android加载资源时报错。
因为非常见后缀名文件可能被压缩,具体参考:
解决办法,对该后缀名文件禁止用压缩:
在build.gradle中添加
android {
aaptOptions {
noCompress "ts"//你的文件后缀名
}
}