【问题标题】:Use Google maps without publish使用谷歌地图而不发布
【发布时间】:2015-02-17 08:34:47
【问题描述】:

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

【问题讨论】:

  • 不,Google 地图与 Play 商店无关。您的问题出在其他地方。
  • 检查你的Map API key..

标签: android google-maps


【解决方案1】:

不,Google Maps即使在调试模式下也可以使用,所以它与APK signing无关。 由于您说这取决于您调试的手机型号,因此可能是屏幕分辨率/尺寸和您的View 的问题。

【讨论】:

    【解决方案2】:
    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.
    

    【讨论】:

    • 我正在使用终端命令 keytool -list -v -keystore "sajacargoclient2.jks" 在控制台中我有这个:i62.tinypic.com/2872ade.png 一个用于调试(它只在几部手机上工作)其他两个用于发布密钥库并且不工作。也许我有太旧的谷歌播放服务?在 gradle 我有 4.2.+
    • 由于安全目的,您已更改 google Map Api V2 中的 SHA1 密钥并识别该应用程序。只需从您的签名构建的密钥库中获取 sHA1 密钥,并用 Google Map api V2 中的现有密钥替换。它会起作用的。我确定。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多