Android模拟器用户界面已损坏且混乱

Android模拟器用户界面已损坏且混乱,第1张

概述我安装了没有AndroidStudio的AndroidSDK,并使用avdmanager创建了一个AVD,当我使用模拟器命令运行它时,模拟器混乱了,看起来很奇怪!这是模拟器的屏幕截图:这是我用来创建AVD的命令:avdmanagercreateavd-nPixel-k'system-images;android-24;google_apis;x86_64'-d'pixe

我安装了没有Android Studio的AndroID SDK,并使用avdmanager创建了一个AVD,当我使用模拟器命令运行它时,模拟器混乱了,看起来很奇怪!

这是模拟器的屏幕截图:



这是我用来创建AVD的命令:

 avdmanager create avd -n Pixel -k 'system-images;androID-24;Google_APIs;x86_64' -d 'pixel_xl' -b 'Google_APIs/x86_64'

这是我已安装的SDK的列表:

Path                              | Version | Description                       | Location-------                           | ------- | -------                           | -------build-tools;25.0.3                | 25.0.3  | AndroID SDK Build-Tools 25.0.3    | build-tools.0.3\emulator                          | 26.0.3  | AndroID Emulator                  | emulator\extras;androID;m2repository       | 47.0.0  | AndroID Support Repository        | extras\androID\m2repository\extras;Google;g...e_play_services | 39      | Google Play services              | extras\Google\g..._play_services\extras;Google;m2repository        | 47      | Google Repository                 | extras\Google\m2repository\extras;Google;usb_driver          | 11      | Google USB Driver                 | extras\Google\usb_driver\extras;intel;Ha...ecution_Manager | 6.0.6   | Intel x86 Emulator Accelerator... | extras\intel\Ha...cution_Manager\patcher;v4                        | 1       | SDK Patch ApplIEr v4              | patcher\v4\platform-tools                    | 25.0.5  | AndroID SDK Platform-Tools        | platform-tools\platforms;androID-24              | 2       | AndroID SDK Platform 24           | platforms\androID-24\platforms;androID-25              | 3       | AndroID SDK Platform 25           | platforms\androID-25\system-images;a...;default;x86_64 | 7       | Intel x86 Atom_64 System Image    | system-images\a...default\x86_64\system-images;a...gle_APIs;x86_64 | 11      | Google Apis Intel x86 Atom_64 ... | system-images\a...le_APIs\x86_64\tools                             | 26.0.1  | AndroID SDK Tools 26.0.1          | tools\

这是我运行它时的模拟器日志:

emulator:AndroID emulator version 25.3.0.0 (build_ID 3394391)emulator:Found AVD name 'pixel'emulator:Found AVD target architecture: x86_64emulator:argv[0]: 'C:\AndroID\androID-sdk\tools\emulator.exe'; program directory: 'C:\AndroID\androID-sdk\tools'emulator:  Found directory: C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\emulator:Probing for C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/kernel-ranchu: file existsemulator:auto-config: -engine qemu2 (based on configuration)emulator:  Found directory: C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\emulator:try dir C:\AndroID\androID-sdk\toolsemulator:try dir C:\AndroID\androID-sdk\tools\emulator:try dir C:\AndroID\androID-sdk\emulatoremulator:Found target-specific 64-bit emulator binary: C:\AndroID\androID-sdk\emulator/qemu/windows-x86_64/qemu-system-x86_64.exeemulator:Adding library search path: 'C:\AndroID\androID-sdk\emulator/lib64'emulator:  Found directory: C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\emulator:  Found directory: C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\emulator:GPU emulation is Disabledemulator: Adding library search path for Qt: 'C:\AndroID\androID-sdk\emulator\lib64\qt\lib'emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=C:\AndroID\androID-sdk\emulator\lib64\qt\pluginsemulator:Quoted param: [C:\AndroID\androID-sdk\emulator/qemu/windows-x86_64/qemu-system-x86_64.exe]emulator:Quoted param: [-avd]emulator:Quoted param: [pixel]emulator:Quoted param: [-verbose]emulator: Running :C:\AndroID\androID-sdk\emulator/qemu/windows-x86_64/qemu-system-x86_64.exeemulator: qemu backend: argv[00] = "C:\AndroID\androID-sdk\emulator/qemu/windows-x86_64/qemu-system-x86_64.exe"emulator: qemu backend: argv[01] = "-avd"emulator: qemu backend: argv[02] = "pixel"emulator: qemu backend: argv[03] = "-verbose"emulator: Concatenated backend parameters: C:\AndroID\androID-sdk\emulator/qemu/windows-x86_64/qemu-system-x86_64.exe -avd pixel -verboseemulator: AndroID virtual device file at: C:\Users\SINA-PC\.androID\avd\pixel.iniemulator: virtual device content at C:\Users\SINA-PC\.androID\avd\Pixel.avdemulator: virtual device config file: C:\Users\SINA-PC\.androID\avd\Pixel.avd/config.iniemulator: using core hw config path: C:\Users\SINA-PC\.androID\avd\Pixel.avd/harDWare-qemu.iniemulator: Found AVD target API level: 24emulator: Read property file at C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/build.propemulator: No boot.prop property file found.emulator: Warning: config.ini contains invalID skin.path entry: (null)emulator: autoconfig: -skin HVGAemulator: autoconfig: -skindir (null)emulator: autoconfig: -kernel C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/kernel-ranchuemulator: Target arch = 'x86_64'emulator: auto-detect: Kernel image requires new device naming scheme.emulator: auto-detect: Kernel does not support YAFFS2 partitions.emulator: autoconfig: -ramdisk C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/ramdisk.imgemulator: Using initial system image: C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/system.imgemulator: autoconfig: -data C:\Users\SINA-PC\.androID\avd\Pixel.avd/userdata-qemu.imgemulator: autoconfig: -initdata C:\Users\SINA-PC\.androID\avd\Pixel.avd/userdata.imgemulator: autoconfig: -cache C:\Users\SINA-PC\.androID\avd\Pixel.avd/cache.imgemulator: Increasing RAM size to 1024MBemulator: VM heap size 0MB is below harDWare specifIEd minimum of 256MB,setting it to that valueemulator: System image is read onlyemulator: Found 3 DNS servers: 185.98.113.113 185.98.114.114 192.168.1.1emulator: skin name 'HVGA' aliased to '320x480'emulator: found magic skin wIDth=320 height=480 bpp=16emulator: cpu acceleration: workingemulator: cpu acceleration status: HAXM version 6.0.6 (3) is installed and usable.emulator: GPU emulation is Disabledemulator: Adjusting Contiguous Memory Allocation of 320x480 framebuffer for software renderer to 2MB.emulator: Found 3 DNS servers: 185.98.113.113 185.98.114.114 192.168.1.1Content of harDWare configuration file:  hw.cpu.arch = x86_64  hw.cpu.ncore = 2  hw.ramSize = 1024  hw.screen = multi-touch  hw.mainKeys = false  hw.trackball = false  hw.keyboard = false  hw.keyboard.lID = false  hw.keyboard.charmap = qwerty2  hw.dPad = false  hw.rotaryinput = false  hw.gsmModem = true  hw.gps = true  hw.battery = true  hw.accelerometer = true  hw.audioinput = true  hw.audioOutput = true  hw.sdCard = true  disk.cachePartition = true  disk.cachePartition.path = C:\Users\SINA-PC\.androID\avd\Pixel.avd/cache.img  disk.cachePartition.size = 66m  hw.lcd.wIDth = 320  hw.lcd.height = 480  hw.lcd.depth = 16  hw.lcd.density = 560  hw.lcd.backlight = true  hw.gpu.enabled = false  hw.gpu.mode = (null)  hw.gpu.blackListed = no  hw.initialOrIEntation = portrait  hw.camera.back = emulated  hw.camera.front = none  vm.heapSize = 256  hw.sensors.light = true  hw.sensors.pressure = true  hw.sensors.humIDity = true  hw.sensors.proximity = true  hw.sensors.magnetic_fIEld = true  hw.sensors.orIEntation = true  hw.sensors.temperature = true  hw.useext4 = true  kernel.path = C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/kernel-ranchu  kernel.newDeviceNaming = yes  kernel.supportsYaffs2 = no  disk.ramdisk.path = C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/ramdisk.img  disk.systemPartition.initPath = C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/system.img  disk.systemPartition.size = 2560m  disk.dataPartition.path = C:\Users\SINA-PC\.androID\avd\Pixel.avd/userdata-qemu.img  disk.dataPartition.size = 550m  disk.encryptionKeyPartition.path = C:\Users\SINA-PC\.androID\avd\Pixel.avd/encryptionkey.img  PlayStore.enabled = false  avd.name = pixel.QEMU options List:emulator: argv[00] = "C:\AndroID\androID-sdk\emulator/qemu/windows-x86_64/qemu-system-x86_64.exe"emulator: argv[01] = "-dns-server"emulator: argv[02] = "185.98.113.113,185.98.114.114,192.168.1.1"emulator: argv[03] = "-serial"emulator: argv[04] = "null"emulator: argv[05] = "-cpu"emulator: argv[06] = "androID64"emulator: argv[07] = "-enable-hax"emulator: argv[08] = "-smp"emulator: argv[09] = "cores=2"emulator: argv[10] = "-m"emulator: argv[11] = "1024"emulator: argv[12] = "-lcd-density"emulator: argv[13] = "560"emulator: argv[14] = "-kernel"emulator: argv[15] = "C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/kernel-ranchu"emulator: argv[16] = "-initrd"emulator: argv[17] = "C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/ramdisk.img"emulator: argv[18] = "-object"emulator: argv[19] = "iothread,ID=disk-iothread"emulator: argv[20] = "-drive"emulator: argv[21] = "if=none,overlap-check=none,cache=unsafe,index=0,ID=system,file=C:\Users\SINA-PC\.androID\avd\Pixel.avd\system.img.qcow2,read-only"emulator: argv[22] = "-device"emulator: argv[23] = "virtio-blk-pci,drive=system,iothread=disk-iothread,modern-pio-notify"emulator: argv[24] = "-drive"emulator: argv[25] = "if=none,overlap-check=none,cache=unsafe,index=1,ID=cache,file=C:\Users\SINA-PC\.androID\avd\Pixel.avd/cache.img.qcow2,l2-cache-size=1048576"emulator: argv[26] = "-device"emulator: argv[27] = "virtio-blk-pci,drive=cache,iothread=disk-iothread,modern-pio-notify"emulator: argv[28] = "-drive"emulator: argv[29] = "if=none,overlap-check=none,cache=unsafe,index=2,ID=userdata,file=C:\Users\SINA-PC\.androID\avd\Pixel.avd/userdata-qemu.img.qcow2,l2-cache-size=1048576"emulator: argv[30] = "-device"emulator: argv[31] = "virtio-blk-pci,drive=userdata,iothread=disk-iothread,modern-pio-notify"emulator: argv[32] = "-drive"emulator: argv[33] = "if=none,overlap-check=none,cache=unsafe,index=3,ID=encrypt,file=C:\Users\SINA-PC\.androID\avd\Pixel.avd/encryptionkey.img.qcow2,l2-cache-size=1048576"emulator: argv[34] = "-device"emulator: argv[35] = "virtio-blk-pci,drive=encrypt,iothread=disk-iothread,modern-pio-notify"emulator: argv[36] = "-netdev"emulator: argv[37] = "user,ID=mynet"emulator: argv[38] = "-device"emulator: argv[39] = "virtio-net-pci,netdev=mynet"emulator: argv[40] = "-netdev"emulator: argv[41] = "user,ID=mynet2,net=10.0.3.0/24"emulator: argv[42] = "-device"emulator: argv[43] = "virtio-net-pci,netdev=mynet2"emulator: argv[44] = "-show-cursor"emulator: argv[45] = "-L"emulator: argv[46] = "C:\AndroID\androID-sdk\emulator/lib/pc-bios"emulator: argv[47] = "-soundhw"emulator: argv[48] = "hda"emulator: argv[49] = "-vga"emulator: argv[50] = "none"emulator: argv[51] = "-append"emulator: argv[52] = "qemu=1 androIDboot.harDWare=ranchu clocksource=pit androID.qemud=1 console=0 console=0 androID.checkjni=1 qemu.gles=0 qemu.encrypt=1 cma=260M ndns=3"emulator: argv[53] = "-androID-hw"emulator: argv[54] = "C:\Users\SINA-PC\.androID\avd\Pixel.avd/harDWare-qemu.ini"Concatenated QEMU options: C:\AndroID\androID-sdk\emulator/qemu/windows-x86_64/qemu-system-x86_64.exe -dns-server 185.98.113.113,185.98.114.114,192.168.1.1 -serial null -cpu androID64 -enable-hax -smp cores=2 -m 1024 -lcd-density 560 -kernel C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/kernel-ranchu -initrd C:\AndroID\androID-sdk/system-images\androID-24\Google_APIs\x86_64\/ramdisk.img -object iothread,ID=disk-iothread -drive if=none,overlap-check=none,cache=unsafe,index=0,ID=system,file=C:\Users\SINA-PC\.androID\avd\Pixel.avd\system.img.qcow2,read-only -device virtio-blk-pci,drive=system,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=1,ID=cache,file=C:\Users\SINA-PC\.androID\avd\Pixel.avd/cache.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=cache,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=2,ID=userdata,file=C:\Users\SINA-PC\.androID\avd\Pixel.avd/userdata-qemu.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=userdata,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=3,ID=encrypt,file=C:\Users\SINA-PC\.androID\avd\Pixel.avd/encryptionkey.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=encrypt,iothread=disk-iothread,modern-pio-notify -netdev user,ID=mynet -device virtio-net-pci,netdev=mynet -netdev user,ID=mynet2,net=10.0.3.0/24 -device virtio-net-pci,netdev=mynet2 -show-cursor -L C:\AndroID\androID-sdk\emulator/lib/pc-bios -soundhw hda -vga none -append 'qemu=1 androIDboot.harDWare=ranchu clocksource=pit androID.qemud=1 console=0 console=0 androID.checkjni=1 qemu.gles=0 qemu.encrypt=1 cma=260M ndns=3' -androID-hw C:\Users\SINA-PC\.androID\avd\Pixel.avd/harDWare-qemu.iniemulator: Starting QEMU main loopHax is enabledHax ram_size 0x40000000emulator: registered 'boot-propertIEs' qemud serviceemulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'emulator: Adding boot property: 'dalvik.vm.heapsize' = '256m'emulator: Adding boot property: 'qemu.hw.mainkeys' = '0'emulator: Adding boot property: 'qemu.sf.lcd_density' = '560'HAX is working and emulator runs in fast virt mode.emulator: goldfish_events.have-dpad: falseemulator: goldfish_events.have-trackball: falseemulator: goldfish_events.have-camera: trueemulator: goldfish_events.have-keyboard: falseemulator: goldfish_events.have-lIDswitch: falseemulator: goldfish_events.have-touch: falseemulator: goldfish_events.have-multitouch: trueemulator: control console Listening on port 5554, ADB on port 5555

谢谢您的宝贵时间!

解决方法:

启动模拟器时设置皮肤可以解决我的问题!感谢@CommonsWare为我指出正确的方向.

emulator -avd pixel -skin 1080x1920
总结

以上是内存溢出为你收集整理的Android模拟器用户界面损坏且混乱全部内容,希望文章能够帮你解决Android模拟器用户界面已损坏且混乱所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1080476.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存