próbuję używać map w mojej aplikacji i otrzymuję ten błąd, udało się znaleźć styl „mapViewStyle” w bieżącym tematemAndroid mapy: Nie udało się odnaleźć styl „mapViewStyle” w bieżącym tematem
mam wygenerowany kluczem i wypróbował wszystkie rozwiązania oferowane dla tego samego problemu w innych miejscach.
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.
To jest mój plik 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>
i to jest moja odpowiedź plik java
pakiet 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;
}
}
Proszę, pomóżcie mi tutaj ... dzięki.
Duplikat http://stackoverflow.com/questions/6975203/android-google-maps-failed-to-find-style-mapviewstyle-in-current-theme? – dmon
Zgadzam się z Dmon zobacz pytanie, które on/ona odniesienia i spójrz na dokumenty http://code.google.com/android/add-ons/google-apis/maps-overview.html#useslibrary – dbryson