当前位置:网站首页>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:40:00 【Is Peter Pan there?】
FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
When the size of a single compressed file in the assets or raw directory exceeds 1024K, appt will forcibly process this file at compile time, so that we will receive a file when reading it at runtime
This file can not be opened as a file descriptor; it is probably compressed
The solution is to disable compression for this file extension:
1. Change your resource file suffix to the suffix listed above.
Add in build.gradle:
android {aaptOptions {noCompress "pdf"//your file extension}}
2. Use the -0 parameter on the command line to specify the file suffix that does not need to be compressed.There is currently no known way to pass the -0 parameter to aapt when you use ADT within Eclipse.
3. Divide your resource file into files below UNCOMPRESS_DATA_MAX(1M).
边栏推荐
- Analysis of usage scenarios of mutex, read-write lock, spin lock, and atomic operation instructions xaddl and cmpxchg
- 敏捷交付的工程效能治理
- 哎,又跟HR在小群吵了一架!
- GNSS[0]- Topic
- 【OpenCV】-重映射
- Hey, I had another fight with HR in the small group!
- 持续投入商品研发,叮咚买菜赢在了供应链投入上
- .NET Static Code Weaving - Rougamo Release 1.1.0
- Demand analysis of MES management system in electronic assembly industry
- Download install and create/run project for HBuilderX
猜你喜欢
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
持续投入商品研发,叮咚买菜赢在了供应链投入上
实例035:设置输出颜色
Flask Framework Beginner-05-Command Management Manager and Database Use
2022 中国算力大会发布“创新先锋”优秀成果
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
Parquet encoding
SAP SD模块前台操作
The 600MHz band is here, will it be the new golden band?
特征值与特征向量
随机推荐
5.scrapy中间件&分布式爬虫
esp32发布机器人电池电压到ros2(micro-ros+CoCube)
如何用C语言代码实现商品管理系统开发
简单的线性表的顺序表示实现,以及线性表的链式表示和实现、带头节点的单向链表,C语言简单实现一些基本功能
nodejs+npm的安装与配置
2022年上半年各大厂Android面试题整理及答案解析(持续更新中......)
静态/动态代理模式
Demand analysis of MES management system in electronic assembly industry
贪吃蛇游戏Bug解析及功能扩展
FeatureNotFound( bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested:
Flask Framework Beginner-06-Add, Delete, Modify and Check the Database
Parquet encoding
持续投入商品研发,叮咚买菜赢在了供应链投入上
C程序编译和预定义详解
Flink jdbc connector 源码改造sink之 clickhouse多节点轮询写与性能分析
TensoFlow学习记录(二):基础操作
Variable string
Promise solves blocking synchronization and turns asynchronous into synchronous
通用的测试用例编写大全(登录测试/web测试等)
.NET Static Code Weaving - Rougamo Release 1.1.0