如何注册一个已编译的APKAPK

2023-09-05 07:44:37 作者:夜阑卧听风吹雨

我已经去codeD的APK与apktool(如原始的源$ C ​​$ C丢失了),所以我可以修复的布局XML文件中的一些问题。我然后重建回来了apktool,当我试图给我的设备上安装它(使用ADB:亚洲开发银行安装appname.apk)它给了我这个错误:

I've decoded an APK with apktool (as the original source code was lost) so I could fix some issues with the layout xml files. I've then rebuilt it back up with apktool and when I tried to install it on my device (using adb: adb install appname.apk) it gave me this error:

[INSTALL_PARSE_FAILED_NO_CERTIFICATES]

原来的apk不过是由一个密钥库(Eclipse的IDE)签约,这个人是不是,我怎么能签字正确地与它的原始梯形文件中的Eclipse外面!?

the original apk however was signed by a keystore (on eclipse IDE), this one isn't, how can I sign it properly with it's original keystone file outside Eclipse!?

推荐答案

您使用的jarsigner签署APK的。你没有签署与原始密钥库,只是产生一个新的。阅读上的细节: http://developer.android.com/guide/publishing /app-signing.html

You use jarsigner to sign APK's. You don't have to sign with the original keystore, just generate a new one. Read up on the details: http://developer.android.com/guide/publishing/app-signing.html