Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Android .apk Upload "Failed to run aapt dump badging"

It has been almost a year since I last uploaded an App to the Google Play Developer Console (it is a Cordova App that I have signed and zip aligned); follow the same process I have used successfully in the past I am now getting the following error:

Upload failed Your APK cannot be analyzed using 'aapt dump badging'. Error output: Failed to run aapt dump badging: ERROR: dump failed because assets could not be loaded

What's happening here?

like image 265
kris Avatar asked Aug 25 '14 00:08

kris


1 Answers

This was a total noob mistake :

Part of the process of preparing the .apk file is to unzip the .apk created by the Cordova build process, then remove the META-INF folder, then rezip and rename back to an .apk. The mistake I made was that, when rezipping, I was zipping the FOLDER, rather than zipping the CONTENTS of the folder.
Another way to say that is that I created the Archive one directory too high in the path.

I'm leaving the question and posting the answer in the hope it will help someone else.

like image 141
kris Avatar answered Nov 11 '22 09:11

kris