Search Issue Tracker
By Design
Votes
0
Found in
5.5.0f1
Issue ID
854533
Regression
No
Android gradle build fails when including .jar with AndroidManifest.xml inside
How to reproduce:
1. Open the attached project
2. Open Build Settings and select Android platform
3. Select "Gradle" as the build system
4. Build for Android
5. Build fails with this error message:
stderr[
Error: duplicate files during packaging of APK C:\Users\Ieva\Downloads\case_854533-GradleJAR\Temp\StagingArea\gradleOut\build\outputs\apk\gradleOut-debug-unaligned.apk
Path in archive: AndroidManifest.xml
Origin 1: C:\Users\Ieva\Downloads\case_854533-GradleJAR\Temp\StagingArea\gradleOut\build\intermediates\res\resources-debug.ap_
Origin 2: C:\Users\Ieva\Downloads\case_854533-GradleJAR\Temp\StagingArea\gradleOut\build\intermediates\transforms\mergeJavaRes\debug\jars\2\1f\main.jar ...
Reproducible: 5.5.0b1, 5.5.0f2, 5.6.0a5
By Design: .jar file contained two AndroidManifest.xml and Gradle is strict on checking errors
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Tigrido
Jan 20, 2017 08:56
Also it is happen with any file that placed in Assets/Plugins/Android/assets