辞职的APK后Google地图无法正常工作 [英] Google maps does not work after resigning an apk

查看:133
本文介绍了辞职的APK后Google地图无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从客户那里进行修改的现有apk中进行一些修改.我已经使用apktool来反编译应用程序,更改了一些资源(例如strings.xml中的某些字符串),并使用相同的工具再次对其进行了重新编译/构建.然后,我使用在Google某处找到的one_click_signer工具进行了签名.

I am doing some modification in an existing apk that i got from my client to modify. I have decompiled application using apktool, changed some resources (like some strings from strings.xml) and recompiled/built it again using same tool. Then I signed using one_click_signer tool that I found somewhere of the google.

但是当我将其安装在设备上时,谷歌地图不再起作用,因为它正在同一台设备上使用原始apk.

But when I install it on my device then google maps does not work anymore as it was working with original apk on the same device.

我对此进行了很多搜索,但没有任何解决方案. 我查看了此链接,还有许多并得出结论,我需要使用与原始apk相同的密钥对apk进行签名.

I have searched a lot about this but did not got any solution. I reviewed this link and many more and come to conclusion that I need to sign the apk with same key that was in original apk.

所以任何人都可以告诉我:

So can anyone please tell me:

  1. 我该如何使用相同的密钥再次对apk进行签名并使地图正常工作?
  2. 或者还有其他方法可以使地图正常工作吗?


我找到的为我工作的解决方案:


Solution That I found and worked for me:

感谢 @ apmartin1991的答案.

Thanx for @apmartin1991's answer . .

我创建了一个Google api控制台项目,并获得了生成的密钥. 然后我将该键替换为 android-manifest.xml 文件,并退出了应用程序.

I created a google api console project and got got the generated key. then I replaced that key in android-manifest.xml file and resigned the application.

有效.

推荐答案

您需要与客户联系以获取.keystore文件,以便您可以使用相同的密钥对其进行签名,也可以使用自己的密钥对其进行签名并允许您要用于Google地图的密钥,您可以从Google API控制台执行此操作.

You will need to contact your client to get the .keystore file so you can sign it with the same key OR you can sign it with your own key and allow your key to be used with google maps, You can do this from the Google API console.

但是,如果您的客户端应用程序位于应用程序商店中,并且您要更新,则必须使用相同的密钥,否则将无法更新它.

However if your clients app is on the appstore and you want to update that you MUST use the same key or it will be impossible to update it.

这篇关于辞职的APK后Google地图无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆