问题描述
据我上次上传一个应用程序到谷歌Play开发者控制台(这是一个科尔多瓦应用程序,我已经签署和zip对齐)将近一年;跟随我在过去成功使用,现在我收到以下错误相同的过程:
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:
上传失败
您的APK无法使用'AAPT转储徽章'进行分析。错误输出:
无法运行AAPT转储徽章:
错误:转储失败,因为资产不能被加载
这里发生了什么?
推荐答案
这是一个总的小白错误:
This was a total noob mistake :
preparing的.apk文件的过程中有一部分是解压缩由科尔多瓦创建的构建过程中的apk文件,然后删除META-INF文件夹,然后重新压缩并重新命名回.apk文件。
我所犯的错误是,当rezipping,我荏苒的文件夹,而不是荏苒文件夹的内容。结果
说,另一种方式是我创建存档一个目录路径太高。
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.
这篇关于谷歌Android的播放上传.apk文件"无法运行AAPT转储徽章"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!