[英]Problems executing an Android application which uses GoogleMaps .apk in a smartphone
我最近开发了一个 Android 应用程序,它使用 GoogleMaps API 并代表 map 的点。 该应用程序在 Android 仿真器中运行良好,但在智能手机中执行时无法运行。 当表示 map 时,所有点都会显示,但 map 未显示(它显示为带有正方形的白色 map)。 我已经生成了带有default.keystore
的 .apk : debug.keystore
。 我尝试使用自定义密钥库生成 the.apk 并获得以下结果:
密钥库被篡改,或密码不正确。
智能手机中googlemaps API程序的任何解决方案? 有人知道如何生成新的debug.keystore
吗?
尝试创建一个新的密钥库。 使用这个新的密钥库获取 google map api 密钥然后运行
制作新的调试密钥库的最简单方法实际上是让工具为您完成。 如果您删除现有的密钥库,构建工具会自动为您生成一个新的。 然后,您可以执行以下步骤获取 hash 并获取 API 密钥:
The default storage location for AVDs is in ~/.android/ on OS X and Linux, in C:\Documents and Settings\.android\ on Windows XP, and in C:\Users\.android\ on Windows Vista and Windows 7 .
下次构建时,构建工具将重新生成新的密钥库和调试密钥。
此处步骤的完整描述: http://developer.android.com/guide/publishing/app-signing.html
您也可以使用与设备相同的密钥库。 相同的密钥库也适用于模拟器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.