ant 的 build.xml,查找 nocompress, 按照说明添加后缀,例如:
<nocompress extension="zip" />
则 asseets或res/raw里面的后缀为zip的文件不会被压缩(因为已经压缩过了)
另外,有一篇文章里面也提到了相应的方法,详见:http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/
1)将后缀改为以下之一
/* these formats are already compressed, or don't compress well */ static const char* kNoCompressExt[] = { ".jpg", ".jpeg", ".png", ".gif", ".wav", ".mp2", ".mp3", ".ogg", ".aac", ".mpg", ".mpeg", ".mid", ".midi", ".smf", ".jet", ".rtttl", ".imy", ".xmf", ".mp4", ".m4a", ".m4v", ".3gp", ".3gpp", ".3g2", ".3gpp2", ".amr", ".awb", ".wma", ".wmv" };
2)aapt的参数,使用 -0 zip