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
Answer by unity_xBzMY11q312Cmw · Jun 28, 2019 at 07:09 PM
I am having the same problem. with unity version 2018.3.11
i did not get any help till now so unfortunately i had to make AP$$anonymous$$ again :(
Answer by RFredW_Exient · Aug 07, 2019 at 03:26 PM
There're a few suggestions for this here:-
https://stackoverflow.com/questions/52500757/android-app-bundle-build-error-reserved-file
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)
ttfn
Fred