Android的谷歌地图无法找到在当前的主题风格'mapViewStyle“ [英] Android Google Maps Failed to find style 'mapViewStyle' in current theme

查看:211
本文介绍了Android的谷歌地图无法找到在当前的主题风格'mapViewStyle“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在加入谷歌地图视图(我伸出一个图形页面,使用XML编辑器将其添加到活动中,并增加我的谷歌地图API键布局xml文件手动)

When adding a google map view (I extended a MapView, used the xml editor to add it to the Activity, and added my google maps api key to the layout xml file manually)

我的权限允许互联网在清单文件

My permissions allow Internet in the manifest file

我不知道,是在XML编辑器,我得到无法找到风格'mapViewStyle在当前主题的错误,但我似乎拥有了一切设置正确。

What i'm wondering, is in the xml editor i get the error "Failed to find style 'mapViewStyle' in current theme" but i seem to have everything set up correctly.

推荐答案

我有同样的问题,当我尝试建立一个简单的应用程序,下面的 Android的图形页面教程

I had the same problem when I try to build a simple app, following the Android MapView tutorial.

这个应用程序显示出此异常AVD的文件文件的main.xml

The app showed this exception in AVD for the file file main.xml:

未能找到当前主题风格'mapViewStyle

Failed to find style 'mapViewStyle' in current theme

最后,我发现,没有在文件中的错误的Andr​​oidManifest.xml

At last I found that there is a mistake in file AndroidManifest.xml:

元素<使用库机器人:名称=com.google.android.maps/> 应该是一个孩子的<应用> 元素,不会立即在<舱单>

The element <uses-library android:name="com.google.android.maps" /> should be a child of the <application> element, not immediately within <manifest>.

希望这是任何帮助你。

这篇关于Android的谷歌地图无法找到在当前的主题风格'mapViewStyle“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆