Skip to main content
Inspiring
April 19, 2013
Question

Amazon rejected my app because of "Duplicate files at the same path inside the APK"

  • April 19, 2013
  • 3 replies
  • 2122 views

I have an app already approved in Apple's App Store and uploaded in Google's Play Store (both current versions).

An old version of my app is also already approved into the Amazon Appstore. But now I've tried to submit the current version of my app, and they rejected it with this message:

___

We are getting a publishing error from the Android SDK. It is finding duplicate files in the apk.

Kindly see if the Android is not happy with the apk by running this command:
java -classpath <path-to-android-sdk>/tools/lib/sdklib.jar com.android.sdklib.build.ApkBuilderMain <output.apk> -v -u -z [developer apk file]

When you run that command with the developer's apk, you will see:
"com.android.sdklib.build.DuplicateFileException: Duplicate files at the same path inside the APK"
which is the exception that breaks the publish.

Recommendation- Please fix the apk so they no longer see the error and resubmit the apk to the developer portal.


Please correct the issue(s) we found with your app submission.

___

I've tried to run the command they suggest and I get the following:

___

Packaging output.apk

myapp.apk:

=> assets/META-INF/AIR/application.xml

=> res/drawable-ldpi/icon.png

=> res/drawable-mdpi/icon.png

=> res/drawable-hdpi/icon.png

=> res/drawable-xhdpi/icon.png

=> res/drawable-xhdpi/icon.png

com.android.sdklib.build.DuplicateFileException: Duplicate files at the same path inside the APK

___

In my ADT command line I don't specify any duplicate icon. This is my command line:

___

adt -package -target apk-captive-runtime -storetype pkcs12 -keystore ..\cert\android.p12 -storepass xxxx myapp.apk myapp-app.xml -C . myapp.swf icons\myapp_icon_72.png icons\myapp_icon_48.png icons\myapp_icon_36.png

___

Nothing out of the ordinary, as you can see. So, why is this happening? I also used the above ADT line for previous versions, and they approved them. The app is working correctly in my Android devices, so why are the Amazon reviewers concerned with that error message that only appears when running that command line they suggest? What's causing this? Maybe it's something that only happens in the latest versions of AIR (I'm using AIR 3.7).

Any way to fix this?

Thank you!

This topic has been closed for replies.

3 replies

Pahup
Adobe Employee
Adobe Employee
April 19, 2013

Yes, we're aware of the issue and are coming up with a fix soon, thanks for reporting. Meanwhile, request you to follow the workaround posted @ http://forums.adobe.com/message/5242715#5242715

Thanks once again!

-Pahup

Pahup
Adobe Employee
Adobe Employee
April 25, 2013

Hi,

Please try out the latest build 3.7.0.1760, we've fixed the double icon (under xhdpi) issue, this should solve the installation and signing related issues, please let us know how it goes.

Thanks for reporting the problem.

-Pahup

OMA2kAuthor
Inspiring
April 25, 2013

I already sent a manually fixed APK to Amazon, and I'm waiting for their response. Thanks for fixing this problem quickly, though, so next compilation runs smooth.