当前位置:网站首页>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 compressedThe 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).
边栏推荐
猜你喜欢

网络带宽监控,带宽监控工具哪个好

阿里云技术专家邓青琳:云上跨可用区容灾和异地多活最佳实践

Flask Framework Beginner-06-Add, Delete, Modify and Check the Database

企业虚拟偶像产生了实质性的价值效益

114. How to find the cause of Fiori Launchpad routing error by single-step debugging

nodejs+express实现数据库mysql的访问,并展示数据到页面上

esp32 releases robot battery voltage to ros2 (micro-ros+CoCube)

Flask Framework Beginner-05-Command Management Manager and Database Use

LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之三:两次优化

安全至上:落地DevSecOps最佳实践你不得不知道的工具
随机推荐
Flask框架初学-05-命令管理Manager及数据库的使用
html select标签赋值数据库查询结果
网页三维虚拟展厅为接入元宇宙平台做基础
Parquet encoding
天地图坐标系转高德坐标系 WGS84转GCJ02
ASP.NET 获取数据库的数据并写入到excel表格中
DDTL:远距离的域迁移学习
可变字符串
Promise 解决阻塞式同步,将异步变为同步
C 学生管理系统 显示链表信息、删除链表
哎,又跟HR在小群吵了一架!
无代码7月热讯 | 微软首推数字联络中心平台;全球黑客马拉松...
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
HBuilderX的下载安装和创建/运行项目
KunlunBase 1.0 is released!
priority_queue元素为指针时,重载运算符失效
MySQL回表指的是什么
idea中diagram使用
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)