Home > database >  XML document structures must start and end within the same entity?
XML document structures must start and end within the same entity?

Time:10-28

What is the problem?

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.example.4" >

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <receiver android:name=".MainActivity"
            tools:ignore="IntentFilterExportedReceiver">

            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED">

                </action>
            </intent-filter>
        </receiver>
    </application>

CodePudding user response:

You need the closing </manifest> tag under the </application>:

   (...)
   </application>
</manifest>

CodePudding user response:

Close the manifest tag after application tag.

</application></manifest>

android:icon="@drawable/ic_launcher"  // check in drawable folder under res whether the default image ic_launcher is present or not. That is the default icon for your application. 
  • Related