skip to Main Content

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>

3

Answers


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

       (...)
       </application>
    </manifest>
    
    Login or Signup to reply.
  2. 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. 
    
    Login or Signup to reply.
  3. You are missing </manifest> on the last line. It’s also likely that android:icon="@drawable/ic_launcher" should be changed to android:icon="@mipmap/ic_launcher".

    <?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="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:theme="@style/AppTheme" >
            <activity
                android:name=".MainActivity"
                android:exported="true">
    
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
    </manifest>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search