title: Android Bundle Build Error : FileUsesReservedNameException
body: <p>I am trying to use Android App Bundle but getting an error of </p>
  
  <blockquote>
    <p>"File 'root/AndroidManifest.xml' uses reserved file or directory name
    'AndroidManifest.xml'."</p>
  </blockquote>
  
  <p>I have two .aar and one .jar file in my libs folder, and tried getting a bundle by both Build>Build bundles and "./gradlew bundle", but still got the error.</p>
  
  <p>This is actually a rewrite of a project, and the old project which uses the same dependencies creates a bundle without a problem.</p>
  
  <p>The error happens in gradle task "packageProductionDebugBundle", I've also looked at bundletool source code but could not figure out the reason of the problem.</p>
  
  <p>The error is probably happening in BundleFilesValidator in bundletool, as you can see from the line.112 of the class below.</p>
  
  <p><a href="http://bundletool%20-%20BundleFilesValidator" rel="nofollow noreferrer">https://github.com/google/bundletool/blob/master/src/main/java/com/android/tools/build/bundletool/validation/BundleFilesValidator.java</a> </p>
  
  <p>I have two product flavors, but removing them did not change a thing.Also tried to delete many of the dependencies and their dependent classes but that also did not help.</p>
  
  <p>I'd appreciate any suggestion to look where this problem's cause lies.</p>
  
  <p>Also is there any way to debug "packageProductionDebugBundle" task of the bundletool in Gradle, I might have a better idea about the problem if I can.</p>