I am creating an Android application in IntelliJ IDEA 12.1.4. I am using the latest Android SDK tools as of 8/2/2013, which rises to API level 18 for the recently released Android 4.3. My build goal is Android 4.3, and the Java SDK is 1.7.
When I try to create my application, the assembly will fail with the following message:
Error: Android Packager: [appname] java.util.zip.ZipException: duplicate entry: resources.arsc
I acted out and searched for the exact text in the title, but could not find any links. I also tried using binging and googling java.util.zip.ZipException: re-write and find some errors related to this, but nothing that I could understand. I also researched what resource.arsc is and found out that this is a file containing precompiled resources that are in .apk.
I'm not sure that when he says “duplicate record”, it means that there is a duplicate resource in resource.arsc (because I don’t know how this file is created), or if it means that there is a second .arsc resource which he is trying to add to .apk, leading to a conflict.
Any understanding of the parts involved will probably help me find the answer, but if you have experience in resolving this issue, share it.
source share