title: Error:Cannot read packageName from app/src/main/AndroidManifest.xml
body: <p>These are the errors that pop up when running my app for splash screen.</p>
  
  <pre><code>Error:The markup in the document preceding the root element must be well-formed.
  Error:Cannot read packageName from /Users/akellavamsimeher/AndroidStudioProjects/WILM/app/src/main/AndroidManifest.xml
  </code></pre>
  
  <p>I tried to resolve seeing posts from stackoverflow but I'm still stuck at that. Please help me fix these errors.</p>
  
  <p>Here is the code.</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt; manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.pratyuvamgmail.wilm"&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"
          android:theme="@style/AppTheme.NoActionBar"&gt;
          android:name="com.pratyuvamgmail.wilm.Splash" /&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN"/&gt;
              &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  &lt;activity
  android:name=".MainActivity"
  android:label="@string/app_name" &gt;
  &lt;intent-filter&gt;
  &lt;action 
  android:name="com.coderefer.androidsplashscreenexample.MAINACTIVITY"/&gt;
  
  &lt;category android:name="android.intent.category.DEFAULT"/&gt;
  &lt;/intent-filter&gt;
  &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <hr>
  
  <p>Below is my code...</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt; manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.pratyuvamgmail.wilm"&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name"
              android:theme="@style/AppTheme.NoActionBar"&gt;
              android:name="com.pratyuvamgmail.wilm.Splash" /&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN"/&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  &lt;activity
  android:name=".MainActivity"
  android:label="@string/app_name" &gt;
  &lt;intent-filter&gt;
      &lt;action android:name="com.coderefer.androidsplashscreenexample.MAINACTIVITY"/&gt;
  
      &lt;category android:name="android.intent.category.DEFAULT"/&gt;
  &lt;/intent-filter&gt;
  &lt;/activity&gt;
      &lt;/application&gt;
  
      &lt;/manifest&gt;
  </code></pre>