Tôi cố gắng để sử dụng bản đồ trong ứng dụng của tôi và tôi nhận được lỗi này, Không thể tìm thấy phong cách 'mapViewStyle' trong chủ đề hiện tạibản đồ Android: Không thể tìm thấy phong cách 'mapViewStyle' trong chủ đề hiện tại
tôi đã tạo ra chính xác và đã thử tất cả các giải pháp được cung cấp cho cùng một vấn đề ở những nơi khác.
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.
Đây là tập tin xml của tôi
<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>
và đây là file java tương ứng của tôi
gói 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;
}
}
hãy giúp tôi ở đây ... cảm ơn.
Bản sao của http://stackoverflow.com/questions/6975203/android-google-maps-failed-to-find-style-mapviewstyle-in-current-theme? – dmon
Tôi đồng ý với dmon xem câu hỏi anh/cô ấy tham khảo và xem tài liệu http://code.google.com/android/add-ons/google-apis/maps-overview.html#useslibrary – dbryson