在我的 ADT 中使用布局时,我没有在 Palette 中看到 mapview。我已经搜索了所有类别。它在哪里?
我已经尝试将 XML 代码直接放入布局文件中,但我没有看到:
Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.
Failed to find style 'mapViewStyle' in current theme
我是否应该以某种方式导入一些额外的库?
我的项目设置为以 Google API 级别 15 为目标。
最佳答案
谷歌地图 v1,在调色板中有一个 MapView,已被弃用,取而代之的是 Google Maps v2 ,这确实需要您导入 Google Play Services Library .
Google Maps v2 Overview详细介绍了如何开始使用 map v2。
关于android - Pallette Android Eclipse ADT 中没有 map View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16049941/