当前位置:网站首页>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)以下的文件.
边栏推荐
- 持续投入商品研发,叮咚买菜赢在了供应链投入上
- this巩固训练,从两道执行题加深理解闭包与箭头函数中的this
- 【OpenCV】-重映射
- 一篇文章看懂JS闭包,从执行上下文角度解析有趣的闭包
- 网络带宽监控,带宽监控工具哪个好
- The 600MHz band is here, will it be the new golden band?
- Continuing to pour money into commodities research and development, the ding-dong buy vegetables in win into the supply chain
- 工程制图复习题(带答案)
- VR panorama shooting online exhibition hall, 3D panorama brings you an immersive experience
- 特征值与特征向量
猜你喜欢

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

Analysis of usage scenarios of mutex, read-write lock, spin lock, and atomic operation instructions xaddl and cmpxchg

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

谁说程序员不懂浪漫,表白代码来啦~

Flink jdbc connector 源码改造sink之 clickhouse多节点轮询写与性能分析

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

敏捷交付的工程效能治理

2022 中国算力大会发布“创新先锋”优秀成果

nodejs+npm的安装与配置

nodejs安装及环境配置
随机推荐
Variable string
JS 保姆级贴心,从零教你手写实现一个防抖debounce方法
appium软件自动化测试框架
Slipper —— 虚点,最短路
特征值与特征向量
Summary of GNSS Articles
pygame 中的transform模块
nodejs切换版本使用(不需要卸载重装)
114. How to find the cause of Fiori Launchpad routing error by single-step debugging
nodejs installation and environment configuration
5.scrapy中间件&分布式爬虫
Installation and configuration of nodejs+npm
OpenCV如何实现Sobel边缘检测
Promise solves blocking synchronization and turns asynchronous into synchronous
Use nodejs switch version (no need to uninstall and reinstall)
jmeter distributed stress test
安全至上:落地DevSecOps最佳实践你不得不知道的工具
【虚拟化生态平台】虚拟化平台搭建
如何通过API接口从淘宝(或天猫店)复制宝贝到拼多多接口代码对接教程
esp32 releases robot battery voltage to ros2 (micro-ros+CoCube)