29025

The markup in the document preceding the root element must be well formed

Question:

Error : The markup in the document preceding the root element must be well-formed. How do I correct it ?

I have just started using eclipse and am building myfirstapp as per the instructions on developer.android.com.

<<<<<<< Original <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.myfirstapp" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" /> <application android:allowBackup="true" android:icon="@drawable/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=".DisplayMessageActivity" android:label="@string/title_activity_display_message" android:parentActivityName="com.example.myFirstApp.MainActivity" > <meta-data android:name="android.support.PARENT_ACTIVITY" android:value="com.example.myFirstApp.MainActivity" /> </activity> </application> </manifest> ======= <manifest xmlns:android="http://schemas.android.com/apk/res/android" > <application> <activity android:name="com.example.myfirstapp.DisplayMessageActivity" android:label="@string/title_activity_display_message" android:parentActivityName="com.example.myfirstapp.MainActivity"> <meta-data android:name="android.support.PARENT_ACTIVITY" android:value="com.example.myfirstapp.MainActivity" /> </activity> </application> </manifest> >>>>>>> Added

Answer1:

You need to remove the '<<<<<<< Original', the '=======', and the '>>>>>>> Added'. Those were most likely put there by a merge tool.

Make sure you keep the '' at the top of the file. For the rest, I don't know which parts from the original you want (the part at the top) and your new entries (below the '=======').

Recommend

  • Kotlin fails to compile a library
  • Execution failed for task : 'app.transformClassesWithDesugarForDebug'. after importing pro
  • How to use Android's AppCompat theming application-wide?
  • Dependency commons-logging:commons-logging:1.2 is ignored for debug as it may be conflicting with th
  • How to convert NAnt function “path::combine(path1, path2)” to MSBuild?
  • Savon soap body problem
  • Loop animation drawable
  • jinja2 template not found and internal server error
  • Gray line inside cardview :)?
  • Wrapping text in spinner android
  • EditText is covered by Keyboard
  • Running jasmine tests for a component with NgZone dependency
  • XOR with Neural Networks (Matlab)
  • ConnectivityManager.CONNECTIVITY_ACTION deprecated
  • How to resolve permission denied maybe missing internet permission?
  • Splash Screen will not display
  • Javascript CORS - No 'Access-Control-Allow-Origin' header is present
  • Xamarin Android | Layout style
  • WPF Template Binding in ToggleButton UserControl
  • Sending cookie value via httpget but not getting the desired response
  • How to get current document uri in XSLT?
  • JBoss External Properties Files in Classpath
  • Android - Material Design - NavigationView - How to put vertical scroll?
  • Installed module is empty
  • chrome.tabs.executeScript only fires when the Developer Console is open
  • Bad request using file_get_contents for PUT request in PHP
  • Jquery UI tool tip close icon
  • Pass value from viewmodel to script in zk
  • Encrypt data by using a public key in c# and decrypt data by using a private key in php
  • SSO with signing and signature validation doesn't work
  • Deserializing XML into class C#
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • Turn off referential integrity in Derby? is it possible?
  • JaxB to read class hierarchy
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?