i am trying to create Android Asset Bundle but i am having the errors.Please help me out

i have checked custom Gradle Templates as well.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:packageReleaseBundle’.

java.util.concurrent.ExecutionException: com.android.tools.build.bundletool.exceptions.BundleFileTypesException$FileUsesReservedNameException: File ‘root/AndroidManifest.xml’ uses reserved file or directory name ‘AndroidManifest.xml’.

  • 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

I am having the same problem. with unity version 2018.3.11

There’re a few suggestions for this here:-


In summary:
Upgrade (or downgrade) away from Facebook Audience Network SDK 5.0.*
(Similar suggestsions for other sdks)

Or apply a brute-force fix to a custom mainTemplate.gradle’s “android” block:-

android {
   packagingOptions {
      exclude 'AndroidManifest.xml' //This fixes a bug in FAN 5.0.1

(worked for me)