问题描述
我有一个小问题,我的Android地图应用。所以,当我加入图形页面到我的布局文件中它为我无法找到风格'mapViewStyle在当前主题的错误消息。
I've a little problem with my Android Maps Application. So that when I added MapView to my layout xml file it shows me "Failed to find style 'mapViewStyle' in current theme" error message.
下面是我的AndroidManifest.xml:
Here's my AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.acilSRV.client"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="10" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<uses-library android:name="com.google.android.maps"/>
<activity android:name=".AcilActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
</manifest>
和main.xml中出现的该错误信息:
And main.xml where that error message appears:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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/myMapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="*******"
/>
</LinearLayout>
注:我已经检查了我的谷歌地图API密钥,并有一个与API密钥没有问题
Note: I have already checked my Google Maps api key and there's no problem with api key.
有什么建议?
推荐答案
你是对的,拉斐尔T,这是一个Eclipse的bug ......我已经解决了这个使用Ant构建器(通过终端),以及工作:)再次感谢..
You were right, Rafael T, that's an Eclipse bug...I have solved this using Ant builder (through terminal), and that worked :) Thanks again..
这篇关于Android的 - 无法找到风格'mapViewStyle“在当前主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!