我正在制作一个使用谷歌地图的应用程序。但是在我的xml文件中,我遇到了错误:“在当前主题中找不到样式'mapViewStyle'”。我已经给予了网络权限,并在应用程序标记中使用了谷歌地图库。
有谁可以帮助我解决这个问题。
非常感谢
以下是我的xml文件...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<com.google.android.maps.MapView
android:id="@+id/mapview1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="0ACHOtlugQlOP_-siR3LLyIBjv1SwpKWimIY8jw" />
</Relativelayout>
your_api_key_here
的位置,粘贴您的唯一Google API密钥。 - Urban