title: ic_launcher.png AAPT: error: file not found in Android Studio v4.1.1
body: <p>I'm getting the following error.</p>
  <pre><code>Android resource compilation failed
  C:\Users\sarat\OneDrive\Desktop\xd\app\src\main\res\mipmap-mdpi\ic_launcher.png: AAPT: error: file not found.
  </code></pre>
  <p>But .png files are present in <code>mipmap-hdpi(mdpi)(xhdpi)(xxhdpi)(xxxhdpi)</code>
  <a href="https://i.stack.imgur.com/Ymr6L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ymr6L.png" alt="enter image description here" /></a></p>
  <p>The complete errors in build is as follows\</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:mergeDebugResources'.
  &gt; Multiple task action failures occurred:
     &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        &gt; Android resource compilation failed
          C:\Users\sarat\OneDrive\Desktop\xd\app\src\main\res\mipmap-mdpi\ic_launcher.png: AAPT: error: file not found.
              
     &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        &gt; AAPT2 aapt2-4.1.1-6503028-windows Daemon #3: Unexpected error during compile 'C:\Users\sarat\OneDrive\Desktop\xd\app\src\main\res\mipmap-mdpi\ic_launcher_round.png', attempting to stop daemon.
          This should not happen under normal circumstances, please file an issue if it does.
     &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        &gt; Android resource compilation failed
          C:\Users\sarat\OneDrive\Desktop\xd\app\src\main\res\mipmap-hdpi\ic_launcher.png: AAPT: error: file not found.
              
     &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        &gt; AAPT2 aapt2-4.1.1-6503028-windows Daemon #2: Unexpected error during compile 'C:\Users\sarat\OneDrive\Desktop\xd\app\src\main\res\mipmap-xhdpi\ic_launcher.png', attempting to stop daemon.
          This should not happen under normal circumstances, please file an issue if it does.
     &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        &gt; AAPT2 aapt2-4.1.1-6503028-windows Daemon #4: Daemon startup failed
          Please check if you installed the Windows Universal C Runtime.
          This should not happen under normal circumstances, please file an issue if it does.
     &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        &gt; Android resource compilation failed
          C:\Users\sarat\OneDrive\Desktop\xd\app\src\main\res\mipmap-xhdpi\ic_launcher_round.png: AAPT: error: file not found.
              
     &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        &gt; AAPT2 aapt2-4.1.1-6503028-windows Daemon #5: Daemon startup failed
          Please check if you installed the Windows Universal C Runtime.
          This should not happen under normal circumstances, please file an issue if it does.
     &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        &gt; Android resource compilation failed
          C:\Users\sarat\OneDrive\Desktop\xd\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: AAPT: error: file not found.
              
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 6s
  20 actionable tasks: 1 executed, 19 up-to-date
  </code></pre>
  <p>I tried following things<br />
  -invalidate cache and restart Android studio<br />
  -Uninstalling and Reinstalling Android studio<br />
  -updated all files in build.gradle<br />
  -cleaned and rebuiled project<br />
  -even after changing android:icon and android:roundicon in Manisfest page\</p>
  <p>The manifest page is as follows:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.example.xd&quot;&gt;
  
      &lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/Theme.Xd&quot;&gt;
          &lt;activity android:name=&quot;.MainActivity&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  <p>I haven't made any changes in MainActivity and activity_main.xml<br />
  The classpath i'm using is <code>classpath &quot;com.android.tools.build:gradle:4.1.1&quot;</code><br />
  The build.gradle(Module) is as follows:</p>
  <pre><code>plugins {
      id 'com.android.application'
  }
  
  android {
      compileSdkVersion 30
      buildToolsVersion &quot;30.0.3&quot;
  
      defaultConfig {
          applicationId &quot;com.example.xd&quot;
          minSdkVersion 16
          targetSdkVersion 30
          versionCode 1
          versionName &quot;1.0&quot;
  
          vectorDrawables.useSupportLibrary = true
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
  dependencies {
  
      implementation 'androidx.appcompat:appcompat:1.2.0'
      implementation 'com.google.android.material:material:1.2.1'
      implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
      testImplementation 'junit:junit:4.13.1'
      androidTestImplementation 'androidx.test.ext:junit:1.1.2'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  }
  </code></pre>