问题描述
我怎样才能重新签署一个Android APK。我提到这个答案Can我辞职的.apk文件用不同的证书比才出现?
How can I Re-sign an android apk. I referred to this answer Can I resign an .apk with a different certificate than what it came with?
但卡住了与Android的Manifest.xml缺少错误。
but got stuck with Android Manifest.xml missing error.
推荐答案
朋友们,我发现周围的工作了这一点。采用Android的.apk Android的默认debug.keystore辞职。
Friends I found a work around to this . Resign Android Apk using android default debug.keystore.
-
**在WinZip的浏览器,而不是通过解压缩到一个文件夹中的APK。
**Open the apk in the winzip browser and not by unzipping to a folder.
删除 META-INF
文件夹重新.zipping不是必需的。**
Delete META-INF
folder .zipping again is not required.**
的jarsigner -verbose -keystore debug.keystore yourapk.apk aliasname的
**Example** `-Jarsigner –verbose –keystore debug.keystore androiddebugkey.`
的jarsigner -verify yourapk.apk
zipalign -v 4 yourapk.apk signedapk.apk
步骤1和2 是我在那里做错了,这给了我androidmanifest XML缺少的错误。
Step 1 and 2 was where I was doing wrong which gave me androidmanifest xml missing error.
这篇关于重新签一个Android的.apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!