Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java版本写注释安装失败问题 #11

Closed
songxd opened this issue Jan 27, 2016 · 2 comments
Closed

java版本写注释安装失败问题 #11

songxd opened this issue Jan 27, 2016 · 2 comments

Comments

@songxd
Copy link

songxd commented Jan 27, 2016

{使用Java写入APK文件注释虽然可以正常读取,但是安装的时候会失败,错误信息是:

adb install -r demo.apk
Failure [INSTALL_FAILED_INVALID_APK]
原因未知,可能Java的Zip实现写入了某些特殊字符导致APK文件校验失败,于是只能放弃这个方法。同样的功能使用Python测试完全没有问题,处理后的APK可以正常安装。}

上面的问题可以使用zip4j进行写注释操作,亲测不会出现上述问题
https://github.com/songxd/AndroidMultiChannelBuildTool-Java

@mcxiaoke
Copy link
Owner

@songxd 地址是这里 https://github.com/mcxiaoke/packer-ng-plugin Java版和Python版都有

@songxd
Copy link
Author

songxd commented Jan 28, 2016

Y(^_^)Y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants