Apk 部署错误 [英] Apk Deployment Error
问题描述
我在尝试上传我的 apk 文件时遇到错误:
I'm getting the error when trying to upload my apk file:
'转储失败,因为没有找到 androidmanifest.xml'
'dump failed because no androidmanifest.xml found'
AndroidManifest 中的包名是否必须与部署的 apk 名称相同?另外,apk 名称是否必须采用以下形式:com.xxxx.xxxx?或者应该说,TestPro.apk 没问题?
Does the package name in the AndroidManifest have to be the same as the deployed apk name? Also, does the apk name have to be in the form: com.xxxx.xxxx? Or should, say, TestPro.apk be ok?
问候...安德鲁
推荐答案
在遇到完全相同的问题(并且失去了大约 4 个小时的生命删除和重新粘贴我的整个项目......)后,我终于放弃并联系了 Google这是他们的回答:
After having the exact same problem (and losing about 4 hours of my life deleting and repasting my entire project...), I finally gave up and contacted Google and this was their answer:
感谢您的留言.请尝试这些故障排除步骤并如果其中之一解决了您的问题,请告诉我们:
Thank you for your note. Please try these troubleshooting steps and let us know if one of them resolves your problem:
- 尝试在开发者控制台的新版本(或旧版本,如果您已经尝试过新版本)中上传应用.
- 等待您的开发者帐户费用处理(您将不再在您的帐户中看到您的注册正在处理..."横幅)Google Play 开发者控制台).
- 验证您的清单文件是否符合 Android 编码标准(请参阅以下帮助文章:http://developer.android.com/guide/topics/manifest/manifest-intro.html和 http://developer.android.com/tools/projects/index.html).
以上所有方法都不适合我.
All of the above did not work for me.
我向某人询问了这个问题,以下是对我有用的答案:
I asked someone about this issue and here was the answer that worked for me:
我已将我的项目的 .apk 文件复制并粘贴到我的桌面上并从那里开始工作.
I had copied and pasted my project's .apk file onto my desktop and worked from there.
我应该做什么:(然后做了,并且奏效了)
WHAT I SHOULD HAVE DONE: (and then did, and it worked)
从 Eclipse 中将项目正确导出为 android 应用程序,然后按照步骤(密钥、密码等)进行操作.然后我就可以成功地继续了.
Export the project properly from Eclipse as an android application, and then follow the procedure (key, password and all). I was then able to successfully continue.
此外,虽然我认为您可以将您的包名称设为任何您想要的名称,但我的理解是接受的约定是将其设为:com.XXX.XXX.projectName 格式.
Also, although I think that you can have your package name be whatever you want, it is my understanding that the accepted convention is to have it in the: com.XXX.XXX.projectName format.
这篇关于Apk 部署错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!