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
- Trail Renderer visual doesn't match the positions of vertices when they have been offset
- [Mobile] The Material is not visible when using the Decal Renderer Feature
- Uncaught TypeError: Cannot read properties of undefined is thrown when the tab is inactive for several minutes
- Crash on mono_array_length when building a project
- "StackOverflowException" error when changing spline curve type from "Bezier" to "Auto" in the "Element Inspector"
Tigrido
Jan 20, 2017 08:56
Also it is happen with any file that placed in Assets/Plugins/Android/assets