开发者社区> 问答> 正文

Android MapView无法正常工作

Logcat输出:


[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应用程序中使用的相同代码。请帮我。

展开
收起
Puppet 2020-01-24 16:58:15 400 0
1 条回答
写回答
取消 提交回答
  • 日志消息Failed to find an AVD compatible with target 'Google APIs'说明了一切。

    您需要创建一个包含Google API(因此包括Google Maps库)的仿真器。

    有一个GUI,可让您管理和创建新的模拟器映像。只需android从您的SDK工具文件夹运行即可。

    2020-01-24 16:58:34
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载