当前位置:网站首页>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).
边栏推荐
- html select标签赋值数据库查询结果
- Android interview questions and answer analysis of major factories in the first half of 2022 (continuously updated...)
- Web APIs BOM- 操作浏览器:swiper 插件
- 观察者模式
- DDTL:远距离的域迁移学习
- KunlunBase 1.0 发布了!
- How to copy baby from Taobao (or Tmall store) through API interface to Pinduoduo interface code docking tutorial
- 一篇文章看懂JS闭包,从执行上下文角度解析有趣的闭包
- flask框架初学-06-对数据库的增删改查
- 2022 中国算力大会发布“创新先锋”优秀成果
猜你喜欢
ASP.NET 获取数据库的数据并写入到excel表格中
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
企业虚拟偶像产生了实质性的价值效益
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
实例040:逆序列表
小甲鱼汇编笔记
nodejs+express realizes the access to the database mysql and displays the data on the page
工程制图复习题(带答案)
typescript52 - simplify generic function calls
GraphQL背后处理及执行过程是什么
随机推荐
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
持续投入商品研发,叮咚买菜赢在了供应链投入上
Array_Sliding window | leecode brushing notes
谁说程序员不懂浪漫,表白代码来啦~
安全至上:落地DevSecOps最佳实践你不得不知道的工具
网络带宽监控,带宽监控工具哪个好
工程制图名词解释-重点知识
nodejs+npm的安装与配置
静态文件快速建站
jmeter distributed stress test
哎,又跟HR在小群吵了一架!
C程序编译和预定义详解
GraphQL背后处理及执行过程是什么
ThreadLocal
实例036:算素数
initramfs详解----添加硬盘驱动并访问磁盘
贴纸拼词 —— 记忆化搜索 / 状压DP
【OpenCV】-重映射
redis中常见的问题(缓存穿透,缓存雪崩,缓存击穿,redis淘汰策略)
实例041:类的方法与变量