当前位置:网站首页>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)以下的文件.
边栏推荐
- 2022 China Computing Power Conference released the excellent results of "Innovation Pioneer"
- Sky map coordinate system to Gaode coordinate system WGS84 to GCJ02
- 天地图坐标系转高德坐标系 WGS84转GCJ02
- JS 从零教你手写节流throttle
- 工程制图复习题(带答案)
- thinkphp 常用技巧
- Promise solves blocking synchronization and turns asynchronous into synchronous
- 内网穿透-应用
- 虚拟机CentOS7中无图形界面安装Oracle
- 【QT小记】QT中信号和槽的基本使用
猜你喜欢

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

nodejs+express realizes the access to the database mysql and displays the data on the page

【日志框架】

工程制图平面投影练习

工程制图复习题(带答案)

即席查询——Presto

nodejs+npm的安装与配置

2022年上半年各大厂Android面试题整理及答案解析(持续更新中......)

5. Scrapy middleware & distributed crawler

LeetCode third topic (the Longest Substring Without Repeating Characters) trilogy # 3: two optimization
随机推荐
typescript54 - generic constraints
C语言:学生管理系统(链表版)
jmeter distributed stress test
【OpenCV】-重映射
工程制图复习题(带答案)
通用的测试用例编写大全(登录测试/web测试等)
5. Scrapy middleware & distributed crawler
优秀的测试/开发程序员,是怎样修炼的?步步为营地去执行......
《The Google File System》新说
appium软件自动化测试框架
Linux安装mysql最简单教程(一次成功)
OpenCV如何实现Sobel边缘检测
GNSS【0】- 专题
持续投入商品研发,叮咚买菜赢在了供应链投入上
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
typescript55 - generic constraints
数组_滑动窗口 | leecode刷题笔记
FeatureNotFound( bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested:
一篇文章看懂JS闭包,从执行上下文角度解析有趣的闭包