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

The 600MHz band is here, will it be the new golden band?

5.scrapy中间件&分布式爬虫

IDEA02:配置SQL Server2019数据库

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

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

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

Android interview questions and answer analysis of major factories in the first half of 2022 (continuously updated...)

html select标签赋值数据库查询结果

《Greenplum构建实时数据仓库实践》简介

Continuing to pour money into commodities research and development, the ding-dong buy vegetables in win into the supply chain
随机推荐
Summary of GNSS Articles
typescript50 - type specification between cross types and interfaces
持续投入商品研发,叮咚买菜赢在了供应链投入上
【Untitled】
KunlunBase 1.0 发布了!
Use nodejs switch version (no need to uninstall and reinstall)
企业虚拟偶像产生了实质性的价值效益
Slipper - virtual point, shortest path
JS 保姆级贴心,从零教你手写实现一个防抖debounce方法
如何通过API接口从淘宝(或天猫店)复制宝贝到拼多多接口代码对接教程
Linux安装mysql最简单教程(一次成功)
HBuilderX的下载安装和创建/运行项目
2022年上半年各大厂Android面试题整理及答案解析(持续更新中......)
敏捷交付的工程效能治理
《Greenplum构建实时数据仓库实践》简介
pygame 中的transform模块
C # WPF equipment monitoring software (classic) - the next
GraphQL背后处理及执行过程是什么
OpenCV如何实现Sobel边缘检测
Promise solves blocking synchronization and turns asynchronous into synchronous