Android Eclipse 正确导出吗?
我正在使用 Eclipse-plugin 在 mac 上开发 Android 应用程序。 我有一个项目,我按照“Android Tools >”中的步骤操作成功导出签名的应用程序包,但我最终得到的只是一个空白图标 .apk。
它应该看起来像那样吗?我已按照我所知的指示进行操作。
当我将其传输到手机时,它不会执行。它只是显示“无法用作有效的 .apk 文件”。根据记录,该应用程序在模拟器中运行得很好。 请问对此有什么帮助吗?
I'm using Eclipse-plugin to develop Android applications on mac.
I've got a project and I followed the steps in 'Android Tools > Export signed Application Package' successfully, but all I end up with is a blank-icon .apk.
Is it supposed to look like that? I've followed the instructions from what I can tell.
And when I transfer it to a phone, it won't execute. It's just reads "Can't use as a valid .apk-file". For the record, the application works just fine in the emulator.
Any help on this please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你检查过你的drawables文件夹里有一个图标文件吗?
可绘制
可绘制 ldpi
可绘制 mdpi
drawable-hdpi
应该至少在可绘制文件夹中包含它,但检查每个文件夹,以防万一这些文件夹中定义的当前图标损坏。
did you check taht you have an icon file inside your drawables folder?
drawable
drawable-ldpi
drawable-mdpi
drawable-hdpi
should have it at least in drawable folder but chek every folder just in case the current icon defined un any of those folder is corrupted.
看来我已经解决了这个问题......以某种方式。由于某种原因它刚刚开始工作。
我想应用程序毕竟已经按照预期进行了签名和 zip 对齐。
Seems like I've solved the problem... somehow. it just started working for some reason.
I guess the application was signed and zip aligned as aimed for after all.