Android图标未在2.2模拟器上显示但在1.6上显示

时间:2022-04-12 18:53:55

How do i fix this? I have icon.png in my hdpi drawable and my mdpi drawable. I am guessing it has something to do with the hdpi drawable. the hdpi version of the icon is spelled correctly and is 72x72 whereas the mdpi is 48x48.

我该如何解决?我的hdpi drawable和我的mdpi drawable都有icon.png我猜它与hdpi drawable有关。图标的hdpi版本拼写正确,为72x72,而mdpi为48x48。

I also tried cleaning the project too. I have no coding except for the template HelloWorld .java file.

我也尝试过清理这个项目。除了模板HelloWorld .java文件之外,我没有编码。

Oh it works on the Google 2.2 Emulator but not the Android 2.2 Emulator. Any suggestions?

哦,它适用于Google 2.2模拟器,但不适用于Android 2.2模拟器。有什么建议?

1 个解决方案

#1


0  

The last time I had issues with a replacement icon displaying in an emulator, it was because Eclipse needed the directory to be refreshed before it would see the new version and send it to the emulator. If this is the cause of your issue, right-click on the drawables folder and select refresh, then run the application in the emulator again. Eclipse should send the new version over and it should appear as expected.

上次我在模拟器中显示替换图标时遇到问题,这是因为Eclipse需要刷新目录才能看到新版本并将其发送到模拟器。如果这是您的问题的原因,请右键单击drawables文件夹并选择refresh,然后再次在模拟器中运行该应用程序。 Eclipse应该发送新版本,它应该按预期显示。

#1


0  

The last time I had issues with a replacement icon displaying in an emulator, it was because Eclipse needed the directory to be refreshed before it would see the new version and send it to the emulator. If this is the cause of your issue, right-click on the drawables folder and select refresh, then run the application in the emulator again. Eclipse should send the new version over and it should appear as expected.

上次我在模拟器中显示替换图标时遇到问题,这是因为Eclipse需要刷新目录才能看到新版本并将其发送到模拟器。如果这是您的问题的原因,请右键单击drawables文件夹并选择refresh,然后再次在模拟器中运行该应用程序。 Eclipse应该发送新版本,它应该按预期显示。