Windows 10中Android AVD模拟器缩放问题

3

我使用的是Windows 10操作系统和Android Studio 2.3.3版本,创建了一个符合以下配置的Android AVD,但是显示画面无法正确缩放,只出现在屏幕的一个角落。

 Name: 4_WVGA_Nexus_S_API_23 
 CPU/ABI: Google APIs Intel Atom (x86) 
 Path: C:\Users\user\.android\avd\4_WVGA_Nexus_S_API_23.avd 
 Target: google_apis [Google APIs] (API level 22) Skin: 480x800 
 SD Card: C:\Users\user\.android\avd\4_WVGA_Nexus_S_API_23.avd\sdcard.img hw.dPad: no 
 runtime.network.speed: full 
 hw.accelerometer: yes 
 hw.device.name: 4in WVGA (Nexus S) 
 vm.heapSize: 48 
 skin.dynamic: yes 
 hw.device.manufacturer: Generic 
 hw.gps: yes 
 hw.initialOrientation: Portrait 
 skin.path.backup: _no_skin 
 image.androidVersion.api: 22 
 hw.audioInput: yes image.sysdir.1: system-images\android-22\google_apis\x86\ 
 tag.id: google_apis 
 showDeviceFrame: no 
 hw.camera.back: emulated 
 hw.mainKeys: yes 
 AvdId: 4_WVGA_Nexus_S_API_23 
 hw.camera.front: emulated 
 hw.lcd.density: 240 
 avd.ini.displayname: 4 
 WVGA (Nexus S) API 23 hw.gpu.mode: auto 
 hw.device.hash2: MD5:380daa949ffbfa516f53f3f58637c4b3 hw.ramSize: 512 
 hw.trackBall: no PlayStore.enabled: false hw.battery: yes 
 hw.cpu.ncore: 2 
 hw.sdCard: yes 
 tag.display: Google APIs 
 runtime.network.latency: none 
 hw.keyboard: yes hw.sensors.proximity: yes disk.dataPartition.size: 800M 
 hw.sensors.orientation: yes 
 avd.ini.encoding: UTF-8 
 hw.gpu.enabled: yes

有没有关于如何解决缩放问题的想法?

enter image description here

2个回答

3

好的,你需要禁用Windows 10中这个应用程序的缩放。在运行它时,在任务管理器中找到它。The Emulator Process右键单击“Android模拟器 - [设备名称]”A Right Click (Slightly Miss aligned)并选择打开文件位置。现在,您应该看到突出显示模拟器exe的文件夹。Emulator Folder现在右键单击exe并打开属性。然后进入“兼容性”选项卡。Compatibility Tab现在打开“更改高DPI设置”。这里就是魔法发生的地方。使用这些设置,其中值得注意的是由“系统”执行的缩放,这意味着我们不会信任qemu来执行缩放(它忽略并导致问题)。enter image description here


不是说它会模糊,有大像素。但至少鼠标与图像所在位置对齐。 - Ph9214

0

我也遇到了同样的问题。在你的虚拟设备配置窗口中,将模拟性能设置为软件

看起来如果你使用硬件加速,缩放就会出现问题。

祝你好运![Virtual Device Configuration

*注意:根据我的测试结果,SDK Level 24是可以达到最高的软件加速级别。如果你尝试在SDK 26或27上运行,你会发现模拟器屏幕上有一些奇怪的伪影或线条。 这个解决方案并不理想,但至少比使用硬件加速得到的微小屏幕更可用。


抱歉,但这并不是一个解决方案。没有硬件加速的模拟器根本无法使用。 - Aleksanderis

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接