简体   繁体   English

Google Maps API Android

[英]Google Maps API Android

I have this sample application loaded into Eclipse: 我已经将此示例应用程序加载到Eclipse中:

C:\\adt-bundle-windows-x86_64-20130522\\sdk\\extras\\google\\google_play_services\\samples\\maps C:\\ adt-bundle-windows-x86_64-20130522 \\ sdk \\ extras \\ google \\ google_play_services \\ samples \\ maps

I noticed I had to add the jar file android-support-v4.jar from: 我注意到我必须从以下位置添加jar文件android-support-v4.jar

C:\\adt-bundle-windows-x86_64-20130522\\sdk\\extras\\android\\support\\v4 C:\\ adt-bundle-windows-x86_64-20130522 \\ sdk \\ extras \\ android \\ support \\ v4

in order for things to build properly. 为了使事物正常构建。


So far I have tried running the application on my Galaxy S3 which is an actual device not a virtual one. 到目前为止,我已经尝试在我的Galaxy S3上运行该应用程序,这是一个实际的设备,而不是虚拟设备。 I can't get the Basic Map demo to pull up a map at all on that device yet. 我还无法获得基本地图演示来在该设备上完全绘制地图。 I'm not sure why that is so I am trying to get to the bottom of that. 我不确定为什么会这样,所以我试图弄清这一点。

Also I tried running also on a virtual device: Galaxy Nexus (4.65", 720x1280 xhdpi) 我也尝试在虚拟设备上运行:Galaxy Nexus(4.65英寸,720x1280 xhdpi)
Target: Android 4.1.2 API Level 16 目标:Android 4.1.2 API级别16

On that virtual device I get an activity that comes up prompting me to install Google Play Services but, when I click the OK button the virtual device stops responding for some reason. 在该虚拟设备上,出现提示我安装Google Play服务的活动,但是,当我单击“确定”按钮时,虚拟设备由于某种原因停止响应。

Does anyone have any tips on how I can get the Google Maps Demos running on one of my devices either be it the Galaxy S3 or a virtual device? 是否有人对我如何使Galaxy S3或虚拟设备上的Google Maps Demos运行在我的任何设备上有任何提示?

确保API KEY正确,然后将google_play_services_lib添加为库项目。我尝试了全景示例,并在三星s2中正常工作。

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

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