Sto cercando di utilizzare le mappe nella mia richiesta e ottengo questo errore, è riuscito a trovare lo stile 'mapViewStyle' in tema correntemappe Android: è riuscito a trovare lo stile 'mapViewStyle' in tema corrente
ho generato il correttamente, e hanno provato tutte le soluzioni offerte per lo stesso problema in altri luoghi.
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.
Questo è il mio file 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>
e questo è il mio corrispondente di file java
pacchetto 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;
}
}
per favore aiutatemi qui ... grazie.
Duplicato di http://stackoverflow.com/questions/6975203/android-google-maps-failed-to-find-style-mapviewstyle-in-current-theme? – dmon
Sono d'accordo con dmon vedere la domanda a cui fa riferimento e guardare i documenti http://code.google.com/android/add-ons/google-apis/maps-overview.html#useslibrary – dbryson