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

Android

-

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)

  1. Tigrido

    Jan 20, 2017 08:56

    Also it is happen with any file that placed in Assets/Plugins/Android/assets

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.