当前位置:网站首页>FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
2022-08-04 01:36:00 【小飞侠在吗】
FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
当assets或是raw目录下单个压缩文件大小超过1024K之后,编译期appt会去强行处理此文件,使得我们运行期读取的时候会收到一个
This file can not be opened as a file descriptor; it is probably compressed解决办法,对该后缀名文件禁止用压缩:
1.将你的资源文件后缀改成上面列出的后缀。
在build.gradle中添加:
android {
aaptOptions {
noCompress "pdf"//你的文件后缀名
}
}2.在命令行上使用-0参数来指定不需要压缩的文件后缀。当你使用Eclipse内的ADT目前还不知道有什么方法可以传递-0参数给aapt。
3.将你的资源文件分割成UNCOMPRESS_DATA_MAX(1M)以下的文件.
边栏推荐
- Deng Qinglin, Alibaba Cloud Technical Expert: Best Practices for Disaster Recovery across Availability Zones and Multiple Lives in Different Locations on the Cloud
- KunlunBase 1.0 is released!
- nodejs 安装多版本 版本切换
- Demand analysis of MES management system in electronic assembly industry
- 【无标题】
- 5.scrapy中间件&分布式爬虫
- typescript55 - generic constraints
- 敏捷交付的工程效能治理
- typescript57 - Array generic interface
- Linux安装mysql最简单教程(一次成功)
猜你喜欢

HBuilderX的下载安装和创建/运行项目

JS 从零教你手写节流throttle

js中常用的几种遍历处理数据的方法梳理

Flask框架初学-05-命令管理Manager及数据库的使用

Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment

Use nodejs switch version (no need to uninstall and reinstall)

持续投入商品研发,叮咚买菜赢在了供应链投入上

MySQL回表指的是什么

pygame 中的transform模块

Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
随机推荐
哎,又跟HR在小群吵了一架!
【Untitled】
贴纸拼词 —— 记忆化搜索 / 状压DP
nodejs 安装多版本 版本切换
【虚拟户生态平台】虚拟化平台安装时遇到的坑
typescript58 - generic classes
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Observability:你所需要知道的关于 Syslog 的一些知识
How to find the cause of Fiori Launchpad routing errors by single-step debugging
nodejs+express realizes the access to the database mysql and displays the data on the page
lombok注解@RequiredArgsConstructor的使用
2022 中国算力大会发布“创新先锋”优秀成果
nodejs安装及环境配置
Analysis: What makes the Nomad Bridge hack unique
flask框架初学-06-对数据库的增删改查
【store商城项目01】环境准备以及测试
有没有jdbc 链接优炫数据库文档及示例?
5. Scrapy middleware & distributed crawler
Sticker Spelling - Memory Search / Shape Pressure DP
阿里云技术专家邓青琳:云上跨可用区容灾和异地多活最佳实践