Search Unity

FileUsesReservedNameException when building on Android AAB

Discussion in 'Android' started by xVergilx, Feb 14, 2020.

  1. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Got a weird issue when building AAB on UCB or locally:
    Code (CSharp):
    1. 11366: [Unity] FAILURE: Build failed with an exception.
    2. 11367: [Unity] * What went wrong:
    3. 11368: [Unity] Execution failed for task ':packageReleaseBundle'.
    4. 11369: [Unity] > java.util.concurrent.ExecutionException: com.android.tools.build.bundletool.exceptions.BundleFileTypesException$FileUsesReservedNameException: File 'root/AndroidManifest.xml' uses reserved file or directory name 'AndroidManifest.xml'.
    I've tried excluding AndroidManifest via gradle w/o any luck like so.
    Code (CSharp):
    1.       exclude ('root/AndroidManifest.xml')
    2.       exclude ('AndroidManifest.xml')
    3.       exclude 'AndroidManifest.xml'
    This is on Unity 2019.2.16 (Android), with a bunch of plugins that makes determining whats causing this way worse.

    Tail error output:
     
    Last edited: Feb 14, 2020
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Okay, this reproduces when local AAB is built as well. So its not an UCB issue.
    I'll ask to move this to android sub-forum instead.
     
  3. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Found what plugin is causing this issue, its AdColony, which is part of the Applovin Max Mediation.
    AdColony v 4.1.3.0 causes the exception above. AdColony with v4.1.2.0 builds AAB just fine.

    So use 4.1.2.0 until 4.1.4.0 cames out.
     
    Last edited: Feb 22, 2020
    soraphol and chaotictwinz like this.