跳到主要內容

發表文章

目前顯示的是 九月, 2013的文章

Google Play services resources were not found.

09-19 18:33:22.090: E/GooglePlayServicesUtil(1815): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.



今天更新了sdk到 4.3後, 發生了以上問題.
導致map api key v2失效,地圖無法顯示.出現白畫面.


查了老半天,終於發現解決方法:
<fragment
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/map"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        class="com.google.android.gms.maps.MapFragment" />

修正成:
    <fragment
        android:id="@+id/map"
        android:name="com.google.android.gms.maps.SupportMapFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:l…