当前位置:网站首页>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)以下的文件.
边栏推荐
- 一个项目的整体测试流程有哪几个阶段?测试方法有哪些?
- Thinkphp commonly used techniques
- 简单的线性表的顺序表示实现,以及线性表的链式表示和实现、带头节点的单向链表,C语言简单实现一些基本功能
- nodejs安装及环境配置
- LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之三:两次优化
- 安全至上:落地DevSecOps最佳实践你不得不知道的工具
- 数组_滑动窗口 | leecode刷题笔记
- Jmeter cross-platform operation CSV files
- JS 从零教你手写节流throttle
- 快速入门EasyX图形编程
猜你喜欢

Analysis: What makes the Nomad Bridge hack unique

The idea of the diagram

虚拟机CentOS7中无图形界面安装Oracle
![[store mall project 01] environment preparation and testing](/img/78/415b18a26fdc9e6f59b59ba0a00c4f.png)
[store mall project 01] environment preparation and testing

快速入门EasyX图形编程

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

【OpenCV】-重映射

MySQL回表指的是什么

Slipper - virtual point, shortest path

持续投入商品研发,叮咚买菜赢在了供应链投入上
随机推荐
【无标题】
Continuing to pour money into commodities research and development, the ding-dong buy vegetables in win into the supply chain
Google Earth Engine - Calculates the effective width of rivers using publicly available river data
持续投入商品研发,叮咚买菜赢在了供应链投入上
FeatureNotFound( bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested:
114. How to find the cause of Fiori Launchpad routing error by single-step debugging
Electronics manufacturing enterprise deployment WMS what are the benefits of warehouse management system
- heavy OpenCV 】 【 mapping
GraphQL背后处理及执行过程是什么
计算首屏时间
【正则表达式】笔记
GNSS[0]- Topic
Summary of GNSS Articles
nodejs+express实现数据库mysql的访问,并展示数据到页面上
如何通过API接口从淘宝(或天猫店)复制宝贝到拼多多接口代码对接教程
vxe-table 从页面批量删除数据 (不动数据库里的数据)
C # WPF equipment monitoring software (classic) - the next
flask框架初学-06-对数据库的增删改查
initramfs详解----添加硬盘驱动并访问磁盘
Multithreading JUC Learning Chapter 1 Steps to Create Multithreading