Windows 10 中的 Android AVD 模拟器缩放问题 [英] Android AVD emulator scaling issue in windows 10

查看:25
本文介绍了Windows 10 中的 Android AVD 模拟器缩放问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Windows 10,Andorid Studio 2.3.3,我创建了一个具有以下配置的 android avd,但显示无法正确缩放,显示只会在一个角落.

I'm on windows 10, Andorid Studio 2.3.3, I created a an android avd with the below configuration but the display won't scale properly, the display will be only in a corner.

 Name: 4_WVGA_Nexus_S_API_23 
 CPU/ABI: Google APIs Intel Atom (x86) 
 Path: C:Usersuser.androidavd4_WVGA_Nexus_S_API_23.avd 
 Target: google_apis [Google APIs] (API level 22) Skin: 480x800 
 SD Card: C:Usersuser.androidavd4_WVGA_Nexus_S_API_23.avdsdcard.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-imagesandroid-22google_apisx86 
 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

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

Any idea on how the scaling issue can be resolved ?

推荐答案

好的,所以您需要为此应用禁用 Windows 10 缩放.运行时在任务管理器中找到它. 右键单击​​Android 模拟器 - [设备名称]" 并选择打开文件所在位置.您现在应该会看到突出显示模拟器 exe 的文件夹. 现在右键单击 exe 并打开属性.然后转到兼容性"选项卡. 现在打开更改高 DPI 设置".这就是魔法发生的地方.使用这些设置,值得注意的是由系统"执行的缩放,这意味着我们不会信任 qemu 进行缩放(它会忽略并导致问题)

Ok so you need to disable windows 10 scaling for this app. While its running find it in task manager. Right click on "Android Emulator - [Device Name]" and chose open file location. You should now see the folder with the emulator exe highlighted. Now Right click on the exe and open properties. Then go to the "Compatibility" tab. Now open "Change high DPI settings". Here's where the magic happens. Use these settings, Of note is scaling preformed by "System" this means that we wont trust qemu to do the scaling (which it ignores and causes the problem)

这篇关于Windows 10 中的 Android AVD 模拟器缩放问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆