Android - 无法在当前主题中找到样式'mapViewStyle'

Zau*_*yev 7 android google-maps

我的Android地图应用程序有点问题.因此,当我将MapView添加到我的布局xml文件时,它向我显示"在当前主题中找不到样式'mapViewStyle'"错误消息.

这是我的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>
Run Code Online (Sandbox Code Playgroud)

和出现该错误消息的main.xml:

<?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>
Run Code Online (Sandbox Code Playgroud)

注意:我已经检查了我的Google Maps api密钥,api密钥没有问题.

有什么建议?

Zau*_*yev 4

你是对的,Rafael T,这是一个 Eclipse 错误...我已经使用 Ant 构建器(通过终端)解决了这个问题,并且成功了:) 再次感谢..