title: Android resource linking failed Android Studio 3.3.1
body: <p>I am trying to generate APK from my source code and getting below errors.</p>
  
  <pre><code>F:\breeze-2019-3-14\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:88: error: unexpected element &lt;action&gt; found in &lt;manifest&gt;&lt;application&gt;&lt;activity&gt;.
  F:\breeze-2019-3-14\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:90: error: unexpected element &lt;category&gt; found in &lt;manifest&gt;&lt;application&gt;&lt;activity&gt;.
  </code></pre>
  
  <p>My Manifest file is like below</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="no"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      package="com.zaravoipcall.breeze"&gt;
  
      &lt;supports-screens
          android:anyDensity="true"
          android:largeScreens="true"
          android:normalScreens="true"
          android:smallScreens="true" /&gt;
  
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
      &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.BROADCAST_STICKY" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
      &lt;permission
          android:name="com.zaravoipcall.breeze.permission.C2D_MESSAGE"
          android:protectionLevel="signature" /&gt;
  
      &lt;permission android:name="com.ipsmarx.dialer.MsgDBProvider"
          android:protectionLevel="signature" /&gt;
  
      &lt;uses-permission android:name="com.zaravoipcall.breeze.permission.C2D_MESSAGE" /&gt;
  
      &lt;uses-feature
          android:name="android.hardware.sip.voip"
          android:required="false" /&gt;
      &lt;uses-feature
          android:name="android.hardware.wifi"
          android:required="true" /&gt;
      &lt;uses-feature
          android:name="android.hardware.microphone"
          android:required="true" /&gt;
      &lt;uses-feature
          android:name="android.hardware.telephony"
          android:required="false" /&gt;
      &lt;uses-feature
          android:name="android.hardware.screen.portrait"
          android:required="false" /&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.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.USE_CREDENTIALS" /&gt;
  
      &lt;uses-feature
          android:glEsVersion="0x00020000"
          android:required="true" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
  
  
      &lt;application
          android:name="com.ipsmarx.dialer.MyApplication"
          android:allowBackup="true"
          android:configChanges="keyboardHidden|orientation"
          android:hardwareAccelerated="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:screenOrientation="portrait"
          android:theme="@style/AppBaseTheme"&gt;
          &lt;activity
              android:name="com.ipsmarx.newdesign.LoginActivity"
              android:configChanges="keyboardHidden|orientation"
              android:label="@string/app_display_name"
              android:launchMode="singleTask"
              android:screenOrientation="portrait"&gt;
              &lt;action android:name="com.google.android.gms.actions.SEARCH_ACTION" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/activity&gt;
          &lt;receiver
              android:name="com.ipsmarx.newdesign.OutgoingCall"
              android:enabled="false"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.NEW_OUTGOING_CALL" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;activity
              android:name="com.ipsmarx.newdesign.Splashscreen"
              android:configChanges="keyboardHidden|orientation"
              android:label="@string/app_display_name"
              android:launchMode="singleTask"
              android:screenOrientation="portrait"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                  &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;/intent-filter&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.ipsmarx.newdesign.ModeSelectDialog"
              android:allowTaskReparenting="false"
              android:configChanges="orientation"
              android:excludeFromRecents="true"
              android:launchMode="singleTask" /&gt;
          &lt;activity
              android:name="com.ipsmarx.dialer.ConnectedCall"
              android:configChanges="keyboardHidden|orientation"
              android:excludeFromRecents="true"
              android:launchMode="singleTask"
              android:screenOrientation="portrait"
              android:windowSoftInputMode="stateHidden"&gt;
              &lt;intent-filter android:priority="1000"&gt;
                  &lt;action android:name="android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT" /&gt;
                  &lt;action android:name="android.intent.action.VOICE_COMMAND" /&gt;
                  &lt;action android:name="android.intent.action.CALL_BUTTON" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="com.ipsmarx.newdesign.Tabbar"
              android:label="@string/login"
              android:launchMode="singleTask"
              android:screenOrientation="portrait"
              android:windowSoftInputMode="stateHidden"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="com.ipsmarx.contactslist.ui.ContactDetailActivity"
              android:label="Contact Details"
              android:screenOrientation="portrait" /&gt;
          &lt;activity
              android:name="com.ipsmarx.contactslist.ui.ComposeActivity"
              android:label="Compose Invite"
              android:screenOrientation="portrait" /&gt;
  
          &lt;receiver android:name="com.ipsmarx.dialer.Receiver"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.net.conn.CONNECTIVITY_CHANGE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;receiver
              android:name="com.ipsmarx.dialer.WakeLockManager"
              android:enabled="true"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.ipsmarx.dialer.custom.intent.action.cpuwakelock" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;receiver
              android:name="com.ipsmarx.dialer.NotificationController"
              android:enabled="true"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.ipsmarx.dialer.custom.intent.action.REG_STATUS" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.ipsmarx.dialer.custom.intent.action.MISSED_CALL" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.ipsmarx.dialer.custom.intent.action.SHOW_CALLLOG" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.ipsmarx.dialer.custom.intent.action.SHOW_CHATTHREAD" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.ipsmarx.dialer.custom.intent.action.MSG_STATUS" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;service
              android:name="com.ipsmarx.dialer.SipService"
              android:enabled="true" /&gt;
          &lt;service android:name="com.ipsmarx.dialer.ContactSyncService" /&gt;
  
          &lt;!--&lt;provider--&gt;
              &lt;!--android:name="com.ipsmarx.dialer.MsgDBProvider"--&gt;
              &lt;!--android:authorities="@string/app_name"--&gt;
              &lt;!--android:exported="false"--&gt;
              &lt;!--android:permission="android.permission.CONFIGURE_SIP" /&gt;--&gt;
          &lt;receiver
              android:name="com.ipsmarx.pushnotification.GcmBroadcastReceiver"
              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.ipsmarx.dialer" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;service android:name="com.ipsmarx.pushnotification.GCMIntentService" /&gt;
  
          &lt;activity
              android:name="com.ipsmarx.newdesign.SignUp"
              android:label="@string/title_activity_sign_up"
              android:screenOrientation="portrait" /&gt;
          &lt;activity
              android:name="com.ipsmarx.newdesign.SignUpByPhone"
              android:label="@string/title_activity_sign_up_by_phone"
              android:screenOrientation="portrait" /&gt;
          &lt;activity
              android:name="com.ipsmarx.newdesign.ForgotPassword"
              android:label="@string/title_activity_forgot_password"
              android:screenOrientation="portrait" /&gt;
          &lt;activity
              android:name="com.ipsmarx.video.RTCActivity"
              android:configChanges="orientation|screenSize"
              android:excludeFromRecents="true"
              android:label="@string/app_name"
              android:launchMode="singleTask"
              android:screenOrientation="fullUser"
              android:windowSoftInputMode="stateHidden" /&gt;
  
          &lt;meta-data
              android:name="io.fabric.ApiKey"
              android:value="6b5afe577fa0e4476d354af38bcdc075eee398a6" /&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|screenSize|smallestScreenSize|uiMode"
              android:theme="@android:style/Theme.Translucent"
              tools:replace="android:configChanges" /&gt;
          &lt;activity
              android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
              android:theme="@style/Theme.IAPTheme" /&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I am using Android Studio 3.3.1 and Gradle 4.10.1
  I am trying to figure it from last two hours and not getting idea whats wrong in my code. Let me know if someone can help me for solve the issue. Thanks</p>