.apk does not contain current icons - why?

假如想象 提交于 2019-12-24 04:33:08

问题


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?


回答1:


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.




回答2:


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



回答3:


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.



来源:https://stackoverflow.com/questions/3619053/apk-does-not-contain-current-icons-why

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!