proguard之后打开文件错误
AssetManager localAssetManager = null;
localAssetManager= getApplicationContext().getAssets();
localAssetFileDescriptor = localAssetManager.openFd("res/map3_style.txt.png");
以上这段代码在正常打包的情况下可以正常运行,但是通过proguard打包的情况下,运行的时候会报一个java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
我反编译了一下,res目录里存在res/map3_style.txt.png这个文件,不知道为什么会报异常
localAssetManager= getApplicationContext().getAssets();
localAssetFileDescriptor = localAssetManager.openFd("res/map3_style.txt.png");
以上这段代码在正常打包的情况下可以正常运行,但是通过proguard打包的情况下,运行的时候会报一个java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
我反编译了一下,res目录里存在res/map3_style.txt.png这个文件,不知道为什么会报异常
...全文
相关推荐
Android 4.0及以上版本 ProGuard 代码混淆
其中包括第三方jar混淆报错及解决办法,以及普通的代码混淆办法,相信能给你帮助
Eclipse+ProGuard配置
Eclipse+ProGuard配置 Eclipse+ProGuard配置
[独家奉献]Eclipse+ProGuard配置
[独家奉献]Eclipse+ProGuard配置! [独家奉献]Eclipse+ProGuard配置!
解决r文件丢失,方便实用
解决r文件丢失,最好的方法,简单但实用,用于配置android的用户。gen文件下是空的。
Proguar的使用
最近公司有一个项目,是外包项目,由于对方也有技术人员,出于技术上的保密,需要对class文件进行二次处理,于是网上找了好久,只发现Proguard是用的最广泛而且网上资料最多的。由于不是纯JAVA项目,而是WEB项目,涉及到大量的配置文件,所以用这个工具稍显吃力,于是开始研究这玩意,花了好长一段时间,重复试验了N次,终于整出来了,下面总结一下我的经验。



