title: how to fix aapt2 error in android Studio 4.1.1?
body: <p>few days ago i deleted the whole gradle file and installed it again manually
  introduced its path to android studio 4.1.1 and created a project to test</p>
  <p>fortunately gradle worked fine but when i tried to run app on emulator a red goddamn error appears that doesn't let me sleep for 3 days</p>
  <pre><code>Execution failed for task ':app:mergeDebugResources'.
  &gt; Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
     &gt; Could not find aapt2-4.1.1-6503028-linux.jar (com.android.tools.build:aapt2:4.1.1-6503028).
       Searched in the following locations:
           https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/4.1.1-6503028/aapt2-4.1.1-6503028-linux.jar
  
  Possible solution:
   - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
  
  
  </code></pre>
  <p>i read the documentation and i guess that was outdated or just couldn't solve my problem
  cause i declared repository and nothing made a difference.</p>
  <p>every solution i found belongs to 2 or 3 years ago and most of em say the same</p>
  <p>add <code>google()</code> to your <code>repositories</code> in <code>build.gradle</code></p>
  <p>and they were right</p>
  <p>that should made the problem solved but in 3 years ago.</p>
  <p>now by default android studio has <code>google()</code> in <code>repositories</code>
  and still i see the goddamn red error on my screen</p>
  <p>in error obviously points to missing a file named <code>aapt2-4.1.1-6503028-linux.jar</code> and thanks to google ,it gives me the download link
  i downloaded the file but i don't know where to put it.</p>
  <p>as the error says ,</p>
  <p><code>Could not resolve all files for configuration ':app:_internal_aapt2_binary'.</code></p>
  <p>so anybody knows a path for this file or what ever it is ?!</p>
  <p>make an old noob programmer HAPPY ;(</p>