简体   繁体   English

我的Android清单有什么问题?

[英]What's wrong with my Android Manifest?

My manifest keeps saying, "The markup in the document preceding the root element must be well-formed." 我的清单不断说: "The markup in the document preceding the root element must be well-formed." I thought it happened when I tried to create a new activity but I am not sure. 我以为是在尝试创建新活动时发生的,但我不确定。 Below is my code, with the package name blocked out only. 下面是我的代码,仅屏蔽了软件包名称。

<<<<<<< Original
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.000000"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="19" />

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

<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=".SignUpActivity"
        android:label="@string/title_activity_sign_up"
        android:parentActivityName="com.example.000000" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.example.0000000" />
    </activity>
    <activity
        android:name=".SignInActivity"
        android:label="@string/title_activity_sign_in"
        android:parentActivityName="com.example.0000000" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.example.0000000" />
    </activity>
</application>

</manifest>

Remove this line: 删除此行:

<<<<<<< Original

Looks like a bad git conflict resolution. 看起来是个糟糕的git冲突解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM