3 Replies - 874 Views - Last Post: 25 July 2018 - 03:01 AM

#1 Tiarus   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-February 18

Error:The processing instruction target matching "[xX][mM][lL]"

Posted 18 February 2018 - 08:39 AM

Hello, can someone help me? I am just begginer and I got Error:The processing instruction target matching "[xX][mM][lL]" is not allowed in AndroidManifest. Thank you.



<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.inga.viskascopypaste"
>

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="ExtraText,GoogleAppIndexingWarning,RtlEnabled"
tools:targetApi="donut">
<activity android:name=".LoginActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
/>
</application>

</manifest>

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
package="com.sourcey.materiallogindemo">


<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.Dark" />
<activity
android:name=".SignupActivity"
android:theme="@style/AppTheme.Dark" />

<activity
android:name="com.example.inga.viskascopypaste.PagrPuslapis"
android:label="@string/title_activity_pagr_puslapis"
android:theme="@style/AppTheme.NoActionBar" />

</application>

</>

Is This A Good Question/Topic? 0
  • +

Replies To: Error:The processing instruction target matching "[xX][mM][lL]"

#2 ArtificialSoldier   User is online

  • D.I.C Lover
  • member icon

Reputation: 2149
  • View blog
  • Posts: 6,525
  • Joined: 15-January 14

Re: Error:The processing instruction target matching "[xX][mM][lL]"

Posted 19 February 2018 - 10:16 AM

First, why did you post this in the Flash forum, what does this have to do with Flash?

Second, what are you showing above? That looks like more than 1 XML document, and the second one is not valid XML.
Was This Post Helpful? 0
  • +
  • -

#3 minelink18   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 25-July 18

Re: Error:The processing instruction target matching "[xX][mM][lL]"

Posted 25 July 2018 - 12:07 AM

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.inga.viskascopypaste"
>

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="ExtraText,GoogleAppIndexingWarning,RtlEnabled"
tools:targetApi="donut">
<activity android:name=".LoginActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
/>
</application>

</manifest>

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
package="com.sourcey.materiallogindemo">


<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
moviehustle.com
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.Dark" />
<activity
android:name=".SignupActivity"
android:theme="@style/AppTheme.Dark" />

<activity
android:name="com.example.inga.viskascopypaste.PagrPuslapis"
android:label="@string/title_activity_pagr_puslapis"
android:theme="@style/AppTheme.NoActionBar" />

</application>

</> 


this code is not applying what was the error behind this i dont know.
Was This Post Helpful? 0
  • +
  • -

#4 andrewsw   User is online

  • head thrashing
  • member icon

Reputation: 6622
  • View blog
  • Posts: 27,036
  • Joined: 12-December 12

Re: Error:The processing instruction target matching "[xX][mM][lL]"

Posted 25 July 2018 - 03:01 AM

Moved to Android forum.

I know nothing about this but a quick search of the error message suggests that leading whitespace or other characters is the likely cause.

Remove any characters before <?xml and possibly, for testing, bring line 3 up onto the end of line 1.

Look at line 29 though; that shouldn't be there, there should only be one XML declaration per file.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1