title: How to solve "Failed to parse XML in AndroidManifest.xml"?
body: <p>In Android Studio I have a sync error:</p>
  
  <pre><code>ERROR: Failed to parse XML in C:\...\app\src\main\AndroidManifest.xml
  ParseError at [row,col]:[70,1]
  Message: expected start or end tag
  Affected Modules: app
  </code></pre>
  
  <p>I added <code>android:hardwareAccelerated ="true"</code> to <code>AndroidManifest.xml</code> but this did not fix my problem. How should I resolve this?</p>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;!--android:hardwareAccelerated ="true"--&gt;
  &lt;application
      android:name=".App"
      android:allowBackup="true"
      android:icon="@drawable/icon"
      android:label="@string/app_name"
      android:roundIcon="@drawable/icon_round"
      android:supportsRtl="true"
      android:theme="@style/Theme.MaterialComponents.Light.NoActionBar"
      android:hardwareAccelerated="true"&gt;
      &lt;activity
          android:name=".SelectColor"
          android:screenOrientation="sensorPortrait"/&gt;
      &lt;activity
          android:name=".AddAimActivity"
          android:screenOrientation="sensorPortrait"/&gt;
      &lt;activity
          android:name=".MainActivity"
          android:screenOrientation="sensorPortrait"&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=".PopActivity"
          android:screenOrientation="sensorPortrait"/&gt;
      &lt;activity
          android:name=".AddActionAtivity"
          android:theme="@style/AppTheme"
          android:screenOrientation="sensorPortrait" /&gt;
      &lt;activity
          android:name=".SelectIconActivity"
          android:screenOrientation="sensorPortrait"/&gt;
      &lt;activity
          android:name=".EditActionActivity"
          android:theme="@style/AppTheme"
          android:screenOrientation="sensorPortrait"/&gt;
      &lt;activity
          android:name=".EditRoutineActivity"
          android:theme="@style/AppTheme"
          android:screenOrientation="sensorPortrait"/&gt;
  
      &lt;activity
          android:name=".EditAimActivity"
          android:theme="@style/AppTheme"
          android:screenOrientation="sensorPortrait"/&gt;
      &lt;activity
          android:name=".AddReminder"
          android:screenOrientation="sensorPortrait"/&gt;
  
      &lt;receiver
          android:name=".AlarmReceiver"
          android:screenOrientation="sensorPortrait"/&gt;
  
      &lt;activity
          android:name=".AddRoutine"
          android:theme="@style/AppTheme"
          android:screenOrientation="sensorPortrait"/&gt;
      &lt;service android:name="net.eagledev.planner.BackgroundService" android:exported="false" /&gt;
      &lt;service android:name=".NotificationService"/&gt;
  
  &lt;/application&gt;
  &lt;uses-permission android:name="android.permission.FOREGROUND_SERVICE"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>App module</p>
  
  <pre><code>compileSdkVersion 28
  defaultConfig {
      applicationId "net.eagledev.planner"
      minSdkVersion 23
      targetSdkVersion 28
      versionCode 5
      versionName "0.6"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  packagingOptions {
      exclude 'META-INF/proguard/androidx-annotations.pro'
  
  }}
  </code></pre>
  
  <p>Dependencies </p>
  
  <pre><code>implementation fileTree(dir: 'libs', include: ['*.jar'])
  //noinspection GradleCompatible
  implementation 'com.android.support:appcompat-v7:28.0.0'
  implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  testImplementation 'junit:junit:4.12'
  androidTestImplementation 'com.android.support.test:runner:1.0.2'
  androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'
  implementation 'com.android.support:design:28.0.0'
  implementation 'com.getbase:floatingactionbutton:1.10.1'
  implementation 'com.github.clans:fab:1.6.2'
  implementation 'com.google.code.gson:gson:2.8.5'
  implementation 'com.android.support:recyclerview-v7:28'
  implementation 'com.android.support:cardview-v7:28.0.0'
  implementation 'com.android.support:recyclerview-selection:28.0.0'
  def room_version = "1.1.1"
  implementation "android.arch.persistence.room:runtime:$room_version"
  annotationProcessor "android.arch.persistence.room:compiler:$room_version"
  implementation 'com.android.support:gridlayout-v7:28.0.0'
  </code></pre>