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
Comments (1)
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
- UGUI Pointer Enter/Exit does not always trigger when hovering quickly over it
- Longer Add Component submenu labels obscure UI and are not truncated
- Scripts submenu of the Add Component Menu can be scrolled horizontally
- Documentation link icons' are not aligned in he "Recommendation" tab
- "Game Specifications" section becomes blank, and users get "ArgumentException: Cannot unschedule unknown scheduled function" during the "Game Specification" selection when the "Multiplayer Center" window is docked
Tigrido
Jan 20, 2017 08:56
Also it is happen with any file that placed in Assets/Plugins/Android/assets