FileNotFoundException AndroidManifest.xml

发布于 2024-08-02 20:05:22 字数 640 浏览 3 评论 0原文

我正在开发我的第一个 Android 应用程序,并已使其在模拟器中运行,但无法在真实设备上运行(myTouch 运行 cupcake)。

我已将该应用程序放在我的网站上,可通过类型属性设置为 application/vnd.android.package-archive 的链接进行访问,并且我还添加了该 mime 类型到apache(并重新启动它)。我可以使用手机下载该应用程序,但当我尝试安装它时,我收到一条错误消息。

我已经验证了 apk 文件确实有它,确实如此。

我已经使用个人密钥签署了 apk 文件。

我在模拟器上尝试了相同的过程(通过网络下载)并得到了相同的负面结果。该日志确实提供了一些附加信息,基本上是在尝试加载 AndroidManifest.xml 文件时出现 FileNotFoundException

我研究过通过 USB 安装该应用程序,但发现没有办法这样做。

我遇到的所有文档都对在自己的手机上安装该应用程序进行了很多掩饰,所以我认为这很容易,我只是错过了一些东西。

作为最后一点信息...我正在 Ubuntu 和 Java 6 上使用 Eclipse 3.5 进行开发。

有人有任何建议吗?

I am working through my first Android app and have gotten it to work in the emulator but am unable to get it running on a real device (myTouch running cupcake).

I have put the app out on my web site accessible through a link with type attribute set to application/vnd.android.package-archive and I have also added that mime type to apache (and restarted it). I can download the app with my phone but when I try and install it I get an error message.

I have verified that the apk file actually has it, which is does.

I have signed the apk file with a personal key.

I tried the same process on the emulator (downloading via web) and had the same negative result. The log does give some additional information, basically that there is a FileNotFoundException while trying to load the AndroidManifest.xml file.

I looked into installing the app via usb, but found no way to do so.

All of the documentation I have come across pretty much glosses over installing the app on your own phone, so I am thinking it is easy and I am just missing something.

Just as a last bit of info... I am developing with Eclipse 3.5 on Ubuntu and Java 6.

Does anyone have any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

划一舟意中人 2024-08-09 20:05:22

要通过 USB 在您自己的手机上安装该应用程序,请使用 adb install path/to/apk

请参阅 Android 调试桥 (adb) >安装应用程序

To install the app on your own phone via USB, use adb install path/to/apk.

See Android Debug Bridge (adb) > Install an app.

烛影斜 2024-08-09 20:05:22

我对“commonsware.com”的答案进行了投票,因为这看起来无论如何都会有帮助;然而,今天早上经过一番摆弄后,我能够通过网络安装它。看起来这是我的网络服务器上的缓存设置的问题......它们使我无法实际获取更新的内容。我将不得不更深入地研究这个问题,以找出传递 apk 文件的最佳方式。

I gave a vote to "commonsware.com"'s answer as that looks like it would be helpful either way; however, after a little fiddling with it this morning I was able to install it via the web. It looks like it was an issue with the cache settings on my web server... they were keeping me from actually getting the updated content. I will have to dig deeper into this to figure out the best way to deliver apk files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文