android - 打包后的apk更换后缀名为zip之后,不能解压
PHP中文网
PHP中文网 2017-04-17 17:50:47
0
2
877

最近发现一个问题,

  • 1.android studio打出安装包为myApp.apk

  • 2.把apk后缀改为zip--myApp.zip

  • 3.直接解压(mac对于zip直接双击就好了)

以前解压没有问题,现在解压即将完成的时候报错,

我以为是混淆的问题,当我把混淆文件都写好之后,发现问题仍然存在,但是不影响程序的运行,降级studio和gradle到先前的版本也没用(接手代码之前没有做混淆)
研究了好几天没有头绪,请有经验的帮助我一下,谢谢。

我用的工具是MAC OS,android studio 2.2,gradle 2.20

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
PHPzhong

Is it a permission issue? You can try using root. In addition, Linux does not seem to support zip by default. You need to download the support library

巴扎黑

It’s probably a matter of decompression. You can open it directly with winrar in a windows environment. There is no apk package to unzip on mac. Because the compilation into apk is actually a format similar to the zip format, it should have nothing to do with the compilation or development environment. It may only be a problem with the decompression on the mac

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template