简体   繁体   English

Google Maps API密钥问题

[英]Trouble with google maps api key

I exported an android package file and created a new keystore through eclipse. 我导出了一个android包文件,并通过eclipse创建了一个新的密钥库。 The app uses google maps. 该应用程序使用谷歌地图。 App works fine in debug mode but after running the apk the app no longer displays the map, only blank tiles. 应用程序在调试模式下运行良好,但运行apk后,该应用程序不再显示地图,而仅显示空白图块。 I had a google maps api key but it's not working for the release version. 我有一个Google Maps API密钥,但不适用于发行版。 I'm assuming that I need a non-debug maps api key for the release. 我假设我需要一个非调试maps api密钥来发布。

How can I access the private key I generated to obtain a maps api key? 如何访问我生成的私钥以获得Maps api密钥? From what I've read the private key is needed to get a google maps api key. 根据我的阅读,需要私钥来获取google maps api密钥。 I can see the generated file for the key at the file location it was saved but cannot open it. 我可以在保存的文件位置看到密钥的生成文件,但是无法打开它。

Hope this makes sense. 希望这是有道理的。 Thanks in advance! 提前致谢!

请使用与您的生产.apk签名相同的密钥库来注册Maps API密钥,因为在开发中,您正在使用Debug密钥库作为Maps API密钥。

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

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