Apk 部署错误
我在尝试上传 apk 文件时收到错误:
“转储失败,因为未找到 androidmanifest.xml”
AndroidManifest 中的包名称是否必须与部署的 apk 名称相同?另外,apk 名称是否必须采用以下形式:com.xxxx.xxxx?或者说,TestPro.apk 应该可以吗?
问候...安德鲁
I'm getting the error when trying to upload my apk file:
'dump failed because no androidmanifest.xml found'
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?
Regards...Andrew
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
Winzip
或zip阅读器打开您的APK文件,检查您的包中是否存在AndroidManifest.xml
。Use
Winzip
or zip reader to open your APK file to check whetherAndroidManifest.xml
exists inside your package.在遇到完全相同的问题之后(我花了大约 4 个小时删除并重新粘贴我的整个项目......),我最终放弃并联系了 Google,这就是他们的答案:
以上所有内容对我都不起作用。
我向某人询问了这个问题,这是对我有用的答案:
我已将项目的 .apk 文件复制并粘贴到我的桌面上并从那里开始工作。
我应该做什么:(然后做了,它起作用了)
从 Eclipse 中将项目正确导出为 Android 应用程序,然后按照过程(密钥、密码和所有)进行操作。然后我就能够成功地继续。
另外,虽然我认为您可以将包名称命名为任何您想要的名称,但据我了解,可接受的约定是采用以下格式:com.XXX.XXX.projectName。
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:
All of the above did not work for me.
I asked someone about this issue and here was the answer that worked for me:
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)
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.
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.