Note that there are some explanatory texts on larger screens.

plurals
  1. POapp not accepting gmap in xml file
    primarykey
    data
    text
    <p>I am developing app based on gmap.</p> <p>For that i am following <a href="https://developers.google.com/maps/documentation/android/start" rel="nofollow">this</a> doccument.</p> <p>Its giving me error on mainactivity.xml for following code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" &gt; &lt;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:name="com.google.android.gms.maps.MapFragment"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Error line:</p> <pre><code>&lt;fragment xmlns:android="http://schemas.android.com/apk/res/android" </code></pre> <p>and</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p>Error Text:</p> <pre><code>Description Resource Path Location Type Unexpected namespace prefix "xmlns" found for tag fragment activity_main.xml /gmapAPP/res/layout line 14 Android Lint Problem The processing instruction target matching "[xX][mM][lL]" is not allowed. activity_main.xml /gmapAPP/res/layout line 1 Android XML Format Problem </code></pre> <p>My manifest file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.gmapapp" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-permission android:name="android.permission.INTERNET"/&gt; &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /&gt; &lt;uses-permission android:name="com.vogella.android.locationapi.maps.permission.MAPS_RECEIVE" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" &gt; &lt;uses-library android:name="com.google.android.maps"/&gt; &lt;activity android:name="com.example.gmapapp.MainActivity" android:label="@string/app_name" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="your_apikey" /&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>Please help me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload