title: Cannot read packageName from AndroidManifest.xml after minor changes
body: <p>I made some minor changes in my app but now when i try to build my app im getting this error that says Cannot read packageName from AndroidManifest.xml ill post both manifest and gradle properties here so you can get better understanding of what happens :
  Manifest</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      package="com.soheil.prolightfa"
      android:installLocation="auto"
      android:versionCode="24"
      android:versionName="4.6.1"&gt;
  
      &lt;uses-sdk
          android:minSdkVersion="17"
          android:targetSdkVersion="28" /&gt;
  
  
      &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.FLASHLIGHT" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
      &lt;uses-feature android:name="android.hardware.camera" /&gt;
      &lt;uses-feature android:name="android.hardware.camera.autofocus" /&gt;
  
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
      &lt;uses-feature android:name="android.hardware.camera.flash" /&gt;
  
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.BATTERY_STATS"
          tools:ignore="ProtectedPermissions" /&gt;
      &lt;uses-permission android:name="android.permission.DISABLE_KEYGUARD" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  
      &lt;!-- pushe --&gt;
      &lt;permission
          android:name="com.soheil.prolightfa.permission.C2D_MESSAGE"
          android:protectionLevel="signature" /&gt;
  
      &lt;uses-permission android:name="com.soheil.prolightfa.permission.C2D_MESSAGE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt; &lt;!-- pushe --&gt;
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/lablelasli"
          android:label="@string/labelasli"
          android:logo="@drawable/lablelasli"
          android:theme="@style/AppTheme"
          tools:replace="android:label"
          tools:ignore="GoogleAppIndexingWarning"&gt;
          &lt;activity
              android:name=".MainActivity"
              android:configChanges="keyboardHidden|orientation|screenSize"
              android:label="@string/labelasli"
              android:launchMode="singleInstance"
              android:screenOrientation="portrait"&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;!-- service flashlight --&gt;
          &lt;service
              android:name=".utils.FlashlightService"
              android:exported="false" /&gt;
  
          &lt;activity
              android:name=".screenlight"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
          &lt;activity
              android:name=".policesiren"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
          &lt;activity
              android:name=".ambulance"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
          &lt;activity
              android:name=".firetruck"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
          &lt;activity
              android:name=".constrc"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
          &lt;activity
              android:name=".camflash"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
          &lt;activity
              android:name=".disco"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
          &lt;activity
              android:name=".more"
              android:label="@string/labelasli"
              android:theme="@style/AppTheme" /&gt;
  
          &lt;receiver android:name=".widget"&gt;
              &lt;meta-data
                  android:name="android.appwidget.provider"
                  android:resource="@xml/widgetinfo" /&gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.appwidget.action.APPWIDGET_UPDATE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;!-- pushe --&gt;
          &lt;receiver android:name="co.ronash.pushe.receiver.UpdateReceiver"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.PACKAGE_REPLACED" /&gt;
  
                  &lt;data
                      android:path="com.soheil.prolightfa"
                      android:scheme="package" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;receiver
              android:name="com.google.android.gms.gcm.GcmReceiver"
              android:exported="true"
              android:permission="com.google.android.c2dm.permission.SEND"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
  
                  &lt;category android:name="com.soheil.prolightfa" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;meta-data
              android:name="co.ronash.pushe.token"
              android:value="PUSHE_4xxxxxx" /&gt;
          &lt;!-- pushe --&gt;
  
          &lt;activity android:name=".morseract" /&gt;
          &lt;activity
              android:name=".Color"
              android:screenOrientation="landscape"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
  
          &lt;receiver android:name=".utils.DisplayNotifications" /&gt;
  
  
          &lt;meta-data
              android:name="com.google.android.gms.ads.AD_MANAGER_APP"
              android:value="true"/&gt;
          &lt;meta-data
              android:name="com.google.android.gms.ads.APPLICATION_ID"
              android:value="xxxxxxx"/&gt;
  
      &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>and here is my gradle looks like </p>
  
  <pre><code>allprojects {
      repositories {
          google()
          mavenCentral()
          jcenter()
          maven { url "https://jitpack.io" }
      }
  }
  buildscript {
      repositories {
          google()
          mavenCentral()
          jcenter()
          maven { url 'https://dl.bintray.com/woxingxiao/maven' }
          maven { url 'https://dl.bintray.com/android/android-tools' }
  
      }
      dependencies {
          // Add dependency
          classpath 'com.android.tools.build:gradle:3.1.3'
          classpath 'com.google.gms:google-services:4.2.0'
  
      }
  }
  apply plugin: 'com.android.application'
  
  
  dependencies {
      //crashlytics
      // Check for v11.4.2 or higher
      implementation 'com.google.firebase:firebase-core:16.0.7'
      //
      //    // Add dependency
      implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
      //pushe
      implementation project(':pushe-lib-1.2.0')
      //adad
      implementation 'ir.adad:androidsdk:5.0.0'
      //seekbar
      implementation fileTree(include: '*.jar', dir: 'libs')
      implementation 'com.github.rtugeek:colorseekbar:1.7.2'
      //noinspection GradleCompatible
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.squareup.picasso:picasso:2.71828'
      implementation 'com.xw.repo:bubbleseekbar:3.5-lite'
      implementation 'com.auth0:java-jwt:2.1.0'
      implementation 'com.google.firebase:firebase-core:16.0.7'
      implementation 'com.google.android.gms:play-services-gcm:16.1.0'
      implementation 'com.google.android.gms:play-services-ads:17.1.3'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      implementation 'com.google.firebase:firebase-config:16.3.0'
      implementation('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
          transitive = true
      }
  }
  
  android {
      compileSdkVersion 28
      buildToolsVersion '28.0.3'
          buildTypes {
              release {
                  minifyEnabled false
                  proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  
              }
          }
  
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>Everything else is correct i think.</p>