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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Tigrido
Jan 20, 2017 08:56
Also it is happen with any file that placed in Assets/Plugins/Android/assets