.apk 不包含当前图标 - 为什么?
我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是如何将 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.
您的设备和模拟器很可能使用不同的像素密度 (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:
drawable-{l|m|h}dpi
folders andchange them all
density for emulator and device
除了上述答案之外,您还可以尝试这样做:
在 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.