title: Error:Execution failed for task ':app:processDebugManifest'. How to fix?
body: <p>I'm getting error on Android Studio. Error:Execution failed for task ':app:processDebugManifest'.</p>
  
  <blockquote>
    <p>Manifest merger failed : Attribute application@theme value=(@style/AppTheme.NoActionBar) from AndroidManifest.xml:28:9-52
        is also present at [:adgatemediasdk:] AndroidManifest.xml:19:9-40 value=(@style/AppTheme).
        Suggestion: add 'tools:replace="android:theme"' to  element at AndroidManifest.xml:22:5-195:19 to override.</p>
  </blockquote>
  
  <p>This is my androidmanifest.xml file</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.makeuprewardz.app"&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  &lt;uses-permission android:name="com.makeuprewardz.app.permission.C2D_MESSAGE" /&gt;
  &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /&gt;
  &lt;uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" tools:ignore="ProtectedPermissions" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.gms.permission.ACTIVITY_RECOGNITION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.REAL_GET_TASKS" /&gt;
  
  
  &lt;application
      android:name="com.makeuprewardz.app.App"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme.NoActionBar"&gt;
  
  
      &lt;meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/&gt;
  
      &lt;activity android:name="com.makeuprewardz.app.ui.activity.MainActivity"&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;activity
          android:name="com.makeuprewardz.app.ui.activity.HomeActivity"
          android:launchMode="singleTask"/&gt;
  
      &lt;activity
          android:name="com.makeuprewardz.app.ui.activity.RegisterActivity"
          android:launchMode="singleTask"/&gt;
  
      &lt;activity
          android:name=".ui.activity.LoginActivity"
          android:launchMode="singleTask"/&gt;
  
      &lt;activity
          android:name="com.makeuprewardz.app.ui.activity.StartActivity"
          android:launchMode="singleTask"/&gt;
  
      &lt;meta-data android:name="com.appodeal.framework" android:value="android" /&gt;
      &lt;receiver android:name="com.appodeal.ads.AppodealPackageAddedReceiver" android:exported="true" android:enabled="true"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.PACKAGE_ADDED" /&gt;
          &lt;data android:scheme="package" /&gt;
      &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;activity android:name="com.appodeal.ads.InterstitialActivity"
          android:configChanges="orientation|screenSize"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" /&gt;
      &lt;activity android:name="com.appodeal.ads.VideoActivity"
          android:configChanges="orientation|screenSize"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" /&gt;
  
      &lt;activity android:name="com.appodeal.ads.LoaderActivity"
          android:configChanges="orientation|screenSize"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" /&gt;
  
      &lt;meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /&gt;
  
      &lt;activity android:name="com.google.android.gms.ads.AdActivity"
          android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
          android:theme="@android:style/Theme.Translucent" /&gt;
  
      &lt;activity android:name="com.chartboost.sdk.CBImpressionActivity" android:excludeFromRecents="true"
          android:hardwareAccelerated="true" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
          android:configChanges="keyboardHidden|orientation|screenSize" /&gt;
  
      &lt;activity android:name="com.applovin.adview.AppLovinInterstitialActivity"
          android:theme="@android:style/Theme.Translucent" /&gt;
  
      &lt;activity android:name="com.mopub.mobileads.MoPubActivity"
          android:configChanges="keyboardHidden|orientation|screenSize"
          android:theme="@android:style/Theme.Translucent" /&gt;
      &lt;activity android:name="com.mopub.common.MoPubBrowser"
          android:configChanges="keyboardHidden|orientation|screenSize" /&gt;
      &lt;activity android:name="com.mopub.mobileads.MraidActivity"
          android:configChanges="keyboardHidden|orientation|screenSize" /&gt;
      &lt;activity android:name="com.mopub.mobileads.MraidVideoPlayerActivity"
          android:configChanges="keyboardHidden|orientation|screenSize" /&gt;
  
      &lt;activity android:name="org.nexage.sourcekit.mraid.MRAIDBrowser"
          android:configChanges="orientation|keyboard|keyboardHidden|screenSize"
          android:theme="@android:style/Theme.Translucent" /&gt;
  
  
      &lt;activity android:name="com.amazon.device.ads.AdActivity" android:configChanges="keyboardHidden|orientation|screenSize"/&gt;
  
      &lt;activity android:name="org.nexage.sourcekit.vast.activity.VASTActivity"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
  
      &lt;activity android:name="org.nexage.sourcekit.vast.activity.VPAIDActivity"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
  
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.appodeal.ads.networks.vpaid.VPAIDActivity"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /&gt;
  
      &lt;activity android:name="com.appodeal.ads.networks.SpotXActivity"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
  
      &lt;activity android:name="com.unity3d.ads.adunit.AdUnitActivity"
          android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:hardwareAccelerated="true" /&gt;
      &lt;activity android:name="com.unity3d.ads.adunit.AdUnitSoftwareActivity"
          android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:hardwareAccelerated="false" /&gt;
      &lt;activity android:name="com.unity3d.ads2.adunit.AdUnitActivity"
          android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:hardwareAccelerated="true" /&gt;
      &lt;activity android:name="com.unity3d.ads2.adunit.AdUnitSoftwareActivity"
          android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:hardwareAccelerated="false" /&gt;
  
  
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.jirbo.adcolony.AdColonyOverlay"
          android:configChanges="keyboardHidden|orientation|screenSize"
          android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" /&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
          &lt;activity android:name="com.jirbo.adcolony.AdColonyFullscreen"
          android:configChanges="keyboardHidden|orientation|screenSize"
          android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" /&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.jirbo.adcolony.AdColonyBrowser"
          android:configChanges="keyboardHidden|orientation|screenSize"
          android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" /&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.vungle.publisher.FullScreenAdActivity"
          android:configChanges="keyboardHidden|orientation|screenSize"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.startapp.android.publish.list3d.List3DActivity"
          android:theme="@android:style/Theme" /&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.startapp.android.publish.OverlayActivity"
          android:theme="@android:style/Theme.Translucent"
          android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.startapp.android.publish.FullScreenActivity"
          android:theme="@android:style/Theme"
          android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
  
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.yandex.mobile.ads.AdActivity"
          android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /&gt;
  
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.flurry.android.FlurryFullscreenTakeoverActivity"
          android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /&gt;
  
      &lt;activity android:name="com.appodeal.ads.VideoPlayerActivity" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"/&gt;
  
    &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.revmob.FullscreenActivity" android:theme="@android:style/Theme.Translucent"
          android:configChanges="keyboardHidden|orientation"/&gt;
  
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.tapjoy.TJAdUnitActivity" android:configChanges="orientation|keyboardHidden|screenSize"
          android:hardwareAccelerated="true" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" /&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.tapjoy.mraid.view.ActionHandler" android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.tapjoy.mraid.view.Browser" android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
      &lt;!--suppress AndroidDomInspection --&gt;
      &lt;activity android:name="com.tapjoy.TJContentActivity" android:configChanges="orientation|keyboardHidden|screenSize"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" android:hardwareAccelerated="true" /&gt;
  
      &lt;activity android:name="com.adscendmedia.sdk.ui.OffersActivity"
          android:configChanges="orientation|screenSize"&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name="com.playerize.superrewards.activities.SRWebViewActivity"
          android:screenOrientation="portrait" /&gt;
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>My Styles.xml</p>
  
  <pre><code>&lt;resources xmlns:tools="http://schemas.android.com/tools"&gt;
  
  &lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="AppTheme.Dark" parent="Theme.AppCompat.NoActionBar"&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
  
      &lt;item name="android:windowBackground"&gt;@color/colorPrimary&lt;/item&gt;
  
      &lt;item name="colorControlNormal"&gt;@color/iron&lt;/item&gt;
      &lt;item name="colorControlActivated"&gt;@color/white&lt;/item&gt;
      &lt;item name="colorControlHighlight"&gt;@color/white&lt;/item&gt;
      &lt;item name="android:textColorHint"&gt;@color/iron&lt;/item&gt;
  
      &lt;item name="colorButtonNormal"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="android:colorButtonNormal" tools:targetApi="lollipop"&gt;@color/colorPrimaryDark&lt;/item&gt;
  
  &lt;/style&gt;
  
  &lt;style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/&gt;
  &lt;style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/&gt;
  
  &lt;style name="AppTheme.NoActionBar"&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
      &lt;!--&lt;item name="drawerArrowStyle"&gt;@style/MaterialDrawer.DrawerArrowStyle&lt;/item&gt;--&gt;
      &lt;!-- &lt;item name="preferenceTheme"&gt;@style/PreferenceThemeOverlay&lt;/item&gt;--&gt;
  &lt;/style&gt;
  
  &lt;style name="AppTheme.NoActionBar.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/&gt;
  
  &lt;style name="Toolbar_TextAppearance_White"&gt;
      &lt;item name="android:textSize"&gt;18sp&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@android:color/white&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="SwitchButtonStyle"&gt;
      &lt;item name="android:paddingLeft"&gt;10dp&lt;/item&gt;
      &lt;item name="android:paddingRight"&gt;10dp&lt;/item&gt;
      &lt;item name="android:paddingTop"&gt;4dp&lt;/item&gt;
      &lt;item name="android:paddingBottom"&gt;4dp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>