我想在我的應用程序中使用的地圖和我得到這個錯誤, 未能找到風格「mapViewStyle」在當前主題Android的地圖:無法找到風格「mapViewStyle」在當前主題
我已經生成了關鍵是正確的,並嘗試了在其他地方針對相同問題提供的所有解決方案。
1.my target api and the one mentioned in the manifest file are the same.
2.There is no import.R in my project
3.I have cleaned my project.
4.Uses-library element is a child of the application.
這是我的xml文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.google.android.maps.MapView
android:id="@+id/mapview1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:apiKey="*****************"
android:enabled="true"
/>
</LinearLayout>
,這是我的相應的Java文件
包com.epidemicator.prototype;
import android.os.Bundle;
import com.google.android.maps.MapActivity;
public class Mapacti extends MapActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mapview);
}
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}
請幫我在這裏... 謝謝。
重複http://stackoverflow.com/questions/6975203/android-google-maps-failed-to-find-style-mapviewstyle-in-current-theme? – dmon 2012-02-26 19:13:29
我同意dmon看到他/她引用的問題並查看文檔http://code.google.com/android/add-ons/google-apis/maps-overview.html#useslibrary – dbryson 2012-02-26 19:37:24