.apk 不包含当前图标 - 为什么?

发布于 2024-09-17 05:38:37 字数 151 浏览 4 评论 0原文

我是 Android 和 Android 新手蚀。我通过更改其中 2 个图标等修改了一个小应用程序。当我使用模拟器测试应用程序时,一切都按预期工作。但是,当我将 .apk 文件加载到实际设备时,我得到的是旧版本的应用程序(旧图标)。我如何获取 .apk 文件以使用当前的图标和图标?代码?

I'm new to Android & Eclipse. I have modified a small app by changing 2 of the icons among other things. When i test the app using emulators all works as expected. But, when i load the .apk file to an actual device, I get the old version of the app (old icons). How can i get the .apk file to use the current icons & code?

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

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

发布评论

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

评论(3

无声情话 2024-09-24 05:38:37

您是如何将 apk 加载到您的设备上的?使用带有 adb 的控制台确保您设置了重新安装选项。否则检查 Eclipse 是否告诉您,它已重新安装应用程序(检查 Eclipse 中的控制台)。最后要尝试的事情:删除设备上的旧版本并重新安装。

How did you load the apk to your device? Using the console with adb make sure you have the reinstall option set. Otherwise check if eclipse told you, it has reinstalled the app (check the console in eclipse). Last thing to try: remove the old version on your device and install it again.

極樂鬼 2024-09-24 05:38:37

您的设备和模拟器很可能使用不同的像素密度 (dpi),您只更换了一组,这就是使用旧像素密度的原因。
您可以:

  • 检查资源
    drawable-{l|m|h}dpi 文件夹和
    全部更改
  • 使用相同的像素
    模拟器和设备的密度

Most probably your device and your emulator are using different pixel densities (dpi), you replaced only one set and that's why old ones are taken.
You can:

  • Check resources in
    drawable-{l|m|h}dpi folders and
    change them all
  • Use same pixel
    density for emulator and device
随波逐流 2024-09-24 05:38:37

除了上述答案之外,您还可以尝试这样做:
在 Eclipse 中右键单击您的项目并转到 Android Tools ->修复项目属性。

我不太确定,但这可能会有所帮助。

Besides the above answer you can also try to do this:
right click on your project in eclipse and goto android tools -> fix project properties.

M not very sure but tis might help.

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