2010-01-09 61 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即可。