Android Google Maps: XML layout errors

后端 未结 2 1706
旧时难觅i
旧时难觅i 2020-12-12 05:59

I am trying to get google maps v2 to work in android using android studio. I got all my keys and manifest setup. When I try and create xml for the actual activity that the m

相关标签:
2条回答
  • 2020-12-12 06:41

    hi you must use this code in xml file :

    <?xml version="1.0" encoding="utf-8"?>
    <fragment xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/map"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:name="com.google.android.gms.maps.SupportMapFragment"/>
    
    0 讨论(0)
  • 2020-12-12 06:42

    This happens to me as well. Simply clean the project.

    0 讨论(0)
提交回复
热议问题