Google Play Android .apk 上传“无法运行 aapt 转储徽章" [英] Google Play Android .apk Upload "Failed to run aapt dump badging"

查看:30
本文介绍了Google Play Android .apk 上传“无法运行 aapt 转储徽章"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我上次将应用上传到 Google Play 开发者控制台已经快一年了(这是一个我已经签名和压缩对齐的 Cordova 应用);按照我过去成功使用的相同过程,我现在收到以下错误:

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:

上传失败无法使用aapt dump badging"分析您的 APK.错误输出:无法运行 aapt dump 标记:错误:转储失败,因为资产无法加载

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

这里发生了什么?

推荐答案

这完全是一个菜鸟错误:

This was a total noob mistake :

准备 .apk 文件的部分过程是解压缩由 Cordova 构建过程创建的 .apk,然后删除 META-INF 文件夹,然后重新压缩并重命名回 .apk.我犯的错误是,在重新压缩时,我正在压缩文件夹,而不是压缩文件夹的内容.
另一种说法是我在路径中创建了太高的 Archive one 目录.

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.

这篇关于Google Play Android .apk 上传“无法运行 aapt 转储徽章"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆