gpt4 book ai didi

Android:无法在模拟器中运行 xxhdpi-drawable

转载 作者:行者123 更新时间:2023-11-29 00:25:51 26 4
gpt4 key购买 nike

我必须使用新的 drawable-xxhdpi 文件夹扩展应用程序。我能够运行模拟器,但应用程序仍在从 drawable-xhdpi 加载图形。

我添加了文件夹(eclipse->添加新文件夹)并命名。

enter image description here

我尝试将 drawable-xxhdpi 重命名为 drawable-480dpi -> 无效

这些是我对模拟器的设置(link)。我尝试了不同的 Size,比如 XLarge -> 没有效果):

enter image description here

我做错了什么?

最佳答案

经过更多研究,我找到了解决方案 here !手动重启 adb 解决了我的问题!

In the Android SDK Tools version 21.1, the xxhdpi screen resolution for 
the emulator display is not yet supported. However, you could do a manual
override of the LCD properties of the emulator. This will ensure that the
correct resources are being dispatched for the Xperia™ Z emulator. To do so,
please execute the following in your command line after the Xperia™ Z emulator
has completed the boot sequence:

//(on osx/linux use "./adb shell")
adb shell setprop qemu.sf.lcd_density 480

adb shell stop

adb shell start

The emulator will then restart. After it has rebooted the emulator
should use the correct screen density and UI scaling. We recommend
you to execute these commends using a batch file or a shell script
if you are using these settings often.

关于Android:无法在模拟器中运行 xxhdpi-drawable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19564083/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com