What does Error:(13) Error: The <receiver> element must be a direct child of the <application> element [WrongManifestParent] mean and how do i fix it?

MichaelStoddart

Im having problems when trying to compile my app, im trying to launch it from the dialler and the manifest file gets this error. Here is my manifest file

<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>

M D

Move

 <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>

Outside <activity> tag

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

What does "error: '.class' expected" mean and how do I fix it

How do I fix this validator error? - The element a must not appear as a descendant of the button element

What does the error "list indices must be integers or slices, not str" mean and how can I fix it?

"local variable 'e' referenced before assignment" what does this error mean? How do I fix this error?

Error: No value given for one or more required parameters. What does this mean? How do I fix?

'No module named 'deploy' : What does this error mean and how do I fix it?

What does this error mean Unsupported class file major version 56 and how do I fix it?

How to fix "Element 2 of `.l` must have length 1 or 13, not 8" error in R?

Android Studio - The 'activity' element must be a direct child of the 'application' element

what does this error mean, and how to fix it?

How to fix USPS "The element has invalid child element" API error?

How do I select a direct child of "this element" in JSoup

What does Bus error: 10 mean? And how to fix this error

Android gradle build Error "finished with non-zero exit value 42" , what does it mean and how do i fix it?

What does the rust-analyzer error "could not resolve macro `$crate::format_args`" mean and how do I fix it?

What does this Vagrant error mean and how do you fix it? For 'public_network' and 'private_network' together

What does this mean and how should I fix this for big files? (malloc_error_break)

C++ - What does "Incomplete type not allowed" error mean, and how can I fix it?

What does 'index 0 is out of bounds for axis 0 with size 0' mean and how can I fix this error?

Why do I get this error? What does this error mean?

What is a exception error and how do I fix it?

What is a NoReverseMatch error, and how do I fix it?

What does Grub error "no such device: /.disk/info" mean, and how to fix it?

What causes error "argument of HAVING must be type boolean, not type money", and how do I fix it?

What does this mean? How do I fix it? Fatal Exception:main

What does this program mean by Unknown Source and how do I fix it?

What does this error message " Unexpected do block in function application" mean?

Error 13 in Java Eclipse, how do I fix this?

The <activity> element must be a direct child of the <application> element with Android Studio Android Manifest XML File