简体   繁体   English

调试APK即可释放APK,而无需重新编译

[英]debug APK to release APK without recompiling

I have been given an APK file from my mobile developers and I need to upload this to the store. 我的移动开发人员收到了一个APK文件,我需要将其上传到商店。 It says, you need to compile it in release mode. 它说,您需要以发布模式进行编译。 Is there a way in which i can do that to the apk, get it to become in release mode and sign it with a key, without having to get the developers to actually re-compile? 有没有一种方法可以使我对apk执行此操作,使其进入发布模式并使用密钥对其进行签名,而无需使开发人员实际重新编译?

If no, can I extract an apk file, put it in ant and recompile to release mode? 如果没有,我可以提取一个apk文件,将其放入ant并重新编译为发布模式吗?

I don't believe you can do this without recompiling and resigning. 我不相信您无需重新编译和辞职就可以做到这一点。 You need to change the AndroidManifest and re-sign it using the same key as was used to upload it the first time if it was previously uploaded. 您需要更改AndroidManifest并使用与第一次上传时相同的密钥重新签名(如果先前已上传)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM