2010-01-09 47 views
3

logcat的输出:Android的MapView类工作不

[2010-01-09 15:47:19 - HelloMapView]------------------------------ 
[2010-01-09 15:47:19 - HelloMapView]Android Launch! 
[2010-01-09 15:47:19 - HelloMapView]adb is running normally. 
[2010-01-09 15:47:19 - HelloMapView]Performing org.example.hellomapview.HelloMapView activity launch 
[2010-01-09 15:47:19 - HelloMapView]Failed to find an AVD compatible with target 'Google APIs'. 
[2010-01-09 15:47:21 - HelloMapView]Performing org.example.hellomapview.HelloMapView activity launch 
[2010-01-09 15:47:22 - HelloMapView]Application already deployed. No need to reinstall. 
[2010-01-09 15:47:22 - HelloMapView]Starting activity org.example.hellomapview.HelloMapView on device 
[2010-01-09 15:47:23 - HelloMapView]ActivityManager: Can't dispatch DDM chunk 46454154: no handler defined 
[2010-01-09 15:47:23 - HelloMapView]ActivityManager: Can't dispatch DDM chunk 4d505251: no handler defined 
[2010-01-09 15:47:23 - HelloMapView]ActivityManager: Starting: Intent { comp={org.example.hellomapview/org.example.hellomapview.HelloMapView} } 

当我运行我的应用程序是显示上述错误。我无法运行myMap应用程序我使用了他们在myMap应用程序中提供的相同代码。请帮帮我。

+0

aswanistack:您应该编辑您的问题以使日志输出更具可读性。选择日志并按下Ctrl + K(或文本区域上方的小01010图标)将其变为格式化的片段。 – 2010-01-09 12:24:41

+0

阿斯旺,你应该通过你的问题,并标记答案接受(如适用)。否则,人们可能会停止回答你的问题。 – 2010-02-09 19:49:22

回答

4

日志消息Failed to find an AVD compatible with target 'Google APIs'说明了一切。

您需要create an emulator,其中包含Google API(因此也包含Google地图库)。

有一个GUI可以让你管理和创建新的模拟器图像;只需从SDK工具文件夹中运行android即可。