什么是错误:(13)错误:<receiver>元素必须是<application>元素[WrongManifestParent]含义的直接子元素,我该如何修复它?

Mic*_*art -2 android broadcastreceiver android-intent

我在尝试编译我的应用程序时遇到问题,即时尝试从拨号程序启动它,清单文件会出现此错误.这是我的清单文件

<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/>
<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" >
        <receiver
            android:name=".receiver.DialReceiver"
            android:exported="true"

            android:process=":background"
            >
            <intent-filter>
                <action android:name="android.intent.action.NEW_OUTGOING_CALL" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </receiver>
    </activity>
</application>
Run Code Online (Sandbox Code Playgroud)

M D*_*M D 7

移动

 <receiver
        android:name=".receiver.DialReceiver"
        android:exported="true"

        android:process=":background"
        >
        <intent-filter>
            <action android:name="android.intent.action.NEW_OUTGOING_CALL" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </receiver>
Run Code Online (Sandbox Code Playgroud)

外面的<activity>标签