android - Unexpected namespace prefix "xmlns" found for tag fragment Unexpected namespace prefix "map" found for tag fragment -
why unexpected namespace prefix "xmlns" found tag fragment
unexpected namespace prefix "map" found tag fragment?
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".main"> <fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/map" android:name="com.google.android.gms.maps.mapfragment" map:maptype="satellite"/> </relativelayout>
why unexpected namespace prefix "xmlns" found tag fragment unexpected namespace prefix "map" found tag fragment ?
remove xmlns:android="http://schemas.android.com/apk/res/android"
<fragment>
element, , consider moving xmlns:map="http://schemas.android.com/apk/res-auto"
<fragment>
element root element.
for example, valid:
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/foo" android:layout_width="match_parent" android:layout_height="match_parent"> <fragment android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.supportmapfragment" map:maptype="satellite"/> </relativelayout>
Comments
Post a Comment