Android 使用sherlock查找mapViewStyle失败
在我的应用程序中,mapview工作得很好,但突然有一天,当我刚刚编写xml文件时,错误并没有发生,甚至没有更改目标sdk,清理重建和删除R.java文件。还将styles.xml文件更改为Theme.Light,但仍显示错误。这是我的mapView xml和清单文件Android 使用sherlock查找mapViewStyle失败,android,styles,android-mapview,Android,Styles,Android Mapview,在我的应用程序中,mapview工作得很好,但突然有一天,当我刚刚编写xml文件时,错误并没有发生,甚至没有更改目标sdk,清理重建和删除R.java文件。还将styles.xml文件更改为Theme.Light,但仍显示错误。这是我的mapView xml和清单文件 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/a
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".WAmIActivity" >
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="0dtHyV-rxfPOpVnbG700kdJIIx3DIxRid59K_mg"
android:clickable="true"
android:enabled="true"
android:visibility="visible" />
</RelativeLayout>
Manifest file :-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mygooglemapactivity"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/SherlockTheme" >
<uses-library
android:name="com.google.android.maps"/>
<activity
android:name=".MainActivity"
android:label="MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainScreenActivity"
android:label="MainScreenActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
清单文件:-
密钥已正式丢失,google map v1没有更新。请使用google map v2
请参考网站
好的,让我试试,但告诉我一件事,它能解决我面临的问题吗,因为我只需要添加v4.jar文件。它说问题在于styles.xml,它是在MapView中构建的,即mapViewStyle,如果我没有错的话。请帮忙。