Androidmanifest.xml Is Getting Corrupted When A New Activity Is Created
When i create a new activity for my project, my new activity has errors, i think they are related to the androidmanifest.xml which get some weird lines at start and at end. This ar
Solution 1:
This is because you have merged a conflicted file in git. Remove those lines and remove the repeat code and commit again:
<<<<<<< Original
// (1) this is your original Manifest code
=======
// (2) this is the new code.
>>>>>>> Added
NOTE: Either remove (1) or (2) depending on you need. and remove the extra lines
Solution 2:
<?xml version="1.0" encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="moran.jonathan.pizzeria"android:versionCode="1"android:versionName="1.0" ><uses-sdkandroid:minSdkVersion="14"android:targetSdkVersion="18" /><applicationandroid:allowBackup="true"android:icon="@drawable/ic_launcher"android:label="@string/app_name"android:theme="@style/AppTheme" ><activityandroid:name="moran.jonathan.pizzeria.MainActivity"android:label="@string/app_name" ><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter></activity><activityandroid:name="moran.jonathan.pizzeria.Menu"android:label="@string/title_activity_menu" ></activity></application>
Post a Comment for "Androidmanifest.xml Is Getting Corrupted When A New Activity Is Created"