使用Google地图而不发布

时间:2015-02-17 08:34:47

标签: android google-maps

我的一位客户希望使用应用程序而不将其发布到Google Play商店。此应用程序使用谷歌地图。在一些手机型号上,地图可以正常使用调试apk,但在其他地图上的地图是空白的。 我认为生成签名的apk并使用新的api密钥来签名密钥库将解决问题。但是当我即使在我的手机上安装已签名的apk文件时,地图也是空白的。这是因为应用程序需要在Google Play商店中发布吗?

2 个答案:

答案 0 :(得分:0)

不,即使在调试模式下也可以使用Google Maps,因此它与APK signing无关。 既然你说它取决于你调试的手机型号,也许它可能是屏幕分辨率/大小和View的问题。

答案 1 :(得分:0)

Just Replace the SHA1 key according your Keystore file Map will work properly. And Steps for get SHA1 key from Keystore file of Application.
->Right click on Project.
->Click on Export Option.
->Select Android Application and Press next.
->Select Existing Key Store file which you have created.
->Enter keystore password and press next.
->Select your alias and enter password and and press next.
->And Now you will get SHA1 Key in below part of Wizard and mention in Attached screenshot.

enter image description here