我剛剛決定在幾天前休息時,一直在研究這個應用程序將近一年(高級項目)。我的應用程序是使用Eclipse版本3.7.2 64bit針對Froyo Android 2.2開發的,使用我的Windows 7 64位個人電腦。到目前爲止,我曾嘗試:'找不到風格的mapViewStyle'錯誤仍然存在
- 重新安排使用庫標籤清單文件
- 改寫地圖XML文件
- 刪除R.java文件和清涼
- 放置的MapView元素中的佈局
- 重新安裝Eclipse和Android的SDK
- 清潔項目
- 創建style.xml文件,並引用它
- 一個實際設備
- 回覆到以前的代碼
,可能更多的部署......
我的代碼如下: gmap.xml
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="0xMbgnc-el963gCdpl547hdkgXUILTskZr-T5uvg" // random key posted here
/>
AndroidManifest .xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.PubMe"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-sdk android:minSdkVersion="8"/>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<uses-library android:name="com.google.android.maps" />
<activity android:name=".PubMeActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MappingActivity"
android:label="@string/app_name">
</activity>
</application>
</manifest>
我非常感謝任何幫助提前。
您是否找到解決方案?我已經嘗試過所有的答案,像你一樣,沒有任何工作。 – Ryan 2012-06-19 19:28:48
我其實很快找到了解決方案。看到這已經有一段時間了,我不記得EXACLTY我做了什麼,但是我的當前地圖xml代碼被編輯到原始文章中。希望能幫助到你。 – MechaJDI 2012-06-27 07:53:39
將您的答案*作爲答案*發佈在*問題*的正文中。 – casperOne 2012-09-18 14:33:47