InstallLocation 似乎不起作用

发布于 2024-11-26 15:43:13 字数 412 浏览 2 评论 0原文

我正在弄乱测试应用程序清单中的 installLocation 属性,但它似乎不想工作。我尝试过“auto”和“preferExternal”,在这两种情况下,它似乎仍然表现得好像我根本没有设置它一样。

它在我的 2.3.3 Droid X 和模拟器上都执行此操作。我搜索了很多,似乎大多数人都因为他们的 sdk 版本设置而遇到此问题。我的 minSDK 设置为 4,targetSDK 设置为 9,所以应该没问题。

我唯一能想到的可能的原因是我仍然设置了“可调试”属性,这可能会对它产生某种不利影响?我还认为它可能不允许它安装到 SD 卡,因为它是在连接到我的电脑时安装的,但它永远不会允许我“移动到 SD 卡”,即使在断开连接后也是如此。

这是我真的希望在未来的应用程序中能够很好地处理的事情,所以任何关于如何让它工作的建议都会很棒。谢谢。

I am messing with the installLocation attribute in the Manifest of my test app, but it doesn't seem to want to work. I have tried both "auto" and "preferExternal", and in both cases it seems to still be acting as though I don't have it set at all.

It does this on both my 2.3.3 Droid X, as well as the emulator. I've searched quite a bit, and it seems that most people have problems with this because of their sdk version settings. My minSDK is set to 4 and my targetSDK is set to 9, so that should be fine.

The only thing I can think of that may be the cause is that I still have the "debuggable" attribute set, and that may have some kind of adverse effect on it? I also thought it may be possible that it isn't allowing it to install to the SD card because it was mounted while connected to my PC, but it never would allow me to "Move to SD Card", even after being disconnected.

This is something I would really like to have a good handle on for future apps, so any suggestions on how to get it working would be great. Thank you.

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

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

发布评论

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

评论(1

始终不够 2024-12-03 15:43:13

您需要将 minsdk 设置为 8

更多详细信息请参见安装位置

You need to have the minsdk set to 8

More details here Install Location

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