如何在模拟器中获取谷歌地图?

时间:2013-10-03 02:06:28

标签: android google-maps

我实施了一个程序,在我的应用程序中显示谷歌地图,它在移动设备上运行良好,但是当我尝试在模拟器中运行时,它会抛出异常。 任何人都可以提出建议。

 10-03 02:03:53.220: W/GooglePlayServicesUtil(841): Google Play services out of date.  Requires 3265100 but found 2012110
    10-03 02:03:53.240: W/GooglePlayServicesUtil(841): Google Play services out of date.  Requires 3265100 but found 2012110
    10-03 02:03:53.260: W/GooglePlayServicesUtil(841): Google Play services out of date.  Requires 3265100 but found 2012110
    10-03 02:03:53.270: W/GooglePlayServicesUtil(841): Google Play services out of date.  Requires 3265100 but found 2012110
    10-03 02:03:53.290: W/GooglePlayServicesUtil(841): Google Play services out of date.  Requires 3265100 but found 2012110
    10-03 02:03:53.330: W/GooglePlayServicesUtil(841): Google Play services out of date.  Requires 3265100 but found 2012110
    10-03 02:03:53.330: D/AndroidRuntime(841): Shutting down VM
    10-03 02:03:53.341: W/dalvikvm(841): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
    10-03 02:03:53.360: E/AndroidRuntime(841): FATAL EXCEPTION: main
    10-03 02:03:53.360: E/AndroidRuntime(841): java.lang.RuntimeException: Unable to start activity 

提前致谢。

3 个答案:

答案 0 :(得分:0)

您是否启动了将目标设置为Google API的模拟器?

enter image description here

答案 1 :(得分:0)

这是因为模拟器不支持地图v2,您必须使用真实设备。

答案 2 :(得分:0)

即使您将目标设置为google api的模拟器启动,模拟器也不支持Google地图。你需要一个真实的设备来获取地图。