如何调试密钥存储区地图视图 [英] How can I debug keystore for Map View
问题描述
我创建的地图。然后,我产生一个MD5和得到了来自谷歌的API密钥。在我的项目,我遵循了所有必要的步骤。但地图视图仍然不会显示。
I have created a map. Then I generated an md5 and got an API key from Google. In my project, I followed all of the necessary steps. But the Map View still won't display.
在项目随后步骤
- 我已经选择谷歌API项目
- 地图控件与MapAPI在XML
- 在清单我增加了上网权限和
<使用库机器人:名字=com.google.android.maps/>
- I have choosen Google API Project
- MapControl with MapAPI in xml
- In the Manifest I have added internet permission and
<uses-library android:name="com.google.android.maps" />
有谁知道什么可能导致此问题或如何调试呢?
Does anyone know what might cause this issue or how to debug it?
推荐答案
为什么没有显示的地图视图可能有多种原因。
There could be multiple reasons why the Map View is not being displayed
a)如果您正在使用Eclipse的检查,如果日食指向调试密钥库文件开发。在Eclipse导航到Windows> preferences> Android的>构建
a) If you are developing with eclipse check if eclipse is pointing to the debug-keystore file. In eclipse Navigate to Windows > Preferences >Android > Build
您的默认密钥库调试的路径应该是这样
The path of your default debug keystore should be like
<Documents and Settings>\<user-name>\.android\debug.keystore
在linux下查找适当的路径的情况下。
In case of linux look for the appropriate path.
有些人对SO也表明自定义密钥库调试的路径指向的默认密钥库
Some people on SO also suggest pointing the path of the custom debug keystore to that of the default keystore
此外,如果你的关键是这个问题必须显示在logcat中相同
Moreover if your key is the problem the same must be displayed in logcat
b)如果你正坐在一个企业防火墙后,你将不得不通过代理选项模拟器
b) If you are sitting behind a corporate firewall you will have to pass your proxy options to your emulator
在调试配置>目标向下滚动到其他仿真器命令行选项和
Under Debug configuration > Target scroll down to Additional Emulator Command Line Options and enter your proxy settings as
-http-proxy http://<username>:<password>@<proxy>:<port>
这篇关于如何调试密钥存储区地图视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!