命令行启动模拟器 adb命令不执行或很久才执行的问题
step1:打印错误信息
./emulator -avd 24darm -noaudio -no-accel -verbose -gpu off -no-window
//-verbose//打印启动详细信息
我的报错是一直重复的 Adb connected, start proxing data Adb closed by host Adb closed by guest
emulator: Android qemu version 29.2.0.0 (build_id 5871853) (CL:N/A)
emulator: Starting QEMU main loop
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'ro.opengles.version' = '131072'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'
emulator: Adding boot property: 'dalvik.vm.heapsize' = '256m'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '1'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '160'
emulator: goldfish_events.have-dpad: true
emulator: goldfish_events.have-trackball: true
emulator: goldfish_events.have-camera: true
emulator: goldfish_events.have-keyboard: false
emulator: goldfish_events.have-lidswitch: false
emulator: goldfish_events.have-tabletmode: false
emulator: goldfish_events.have-touch: false
emulator: goldfish_events.have-multitouch: true
emulator: control console listening on port 5554, ADB on port 5555
Not using any http proxy
emulator: Adding boot property: 'qemu.timezone' = 'Asia/Chongqing'
emulator: android_hw_fingerprint_init: fingerprint qemud listen service initialized
emulator: onGuestSendCommand: [0x54fe000] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x54fea00] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x54ff400] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x4a12800] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x4a13200] Adb connected, start proxing data
emulator: onGuestRecvData: [0x54fea00] Adb closed by host
emulator: onGuestClose: [0x54fea00] Adb closed by guest
emulator: onGuestRecvData: [0x54ff400] Adb closed by host
emulator: onGuestClose: [0x54ff400] Adb closed by guest
emulator: onGuestRecvData: [0x4a12800] Adb closed by host
emulator: onGuestClose: [0x4a12800] Adb closed by guest
emulator: onGuestRecvData: [0x4a13200] Adb closed by host
emulator: onGuestClose: [0x4a13200] Adb closed by guest
emulator: onGuestSendCommand: [0x54ffe00] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x4a13200] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x4a12800] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x54ff400] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x54fea00] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x4a11400] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x4a11e00] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x6012000] Adb connected, start proxing data
emulator: onGuestSendCommand: [0x6012a00] Adb connected, start proxing data
emulator: onGuestRecvData: [0x54ffe00] Adb closed by host
emulator: onGuestClose: [0x54ffe00] Adb closed by guest
emulator: onGuestRecvData: [0x4a11400] Adb closed by host
emulator: onGuestClose: [0x4a11400] Adb closed by guest
emulator: onGuestRecvData: [0x4a11e00] Adb closed by host
emulator: onGuestClose: [0x4a11e00] Adb closed by guest
step2:我的处理方式
经过各种查资料,查网页。没找到类似的问题,但是发现多等一会 就可以正确执行adb的命令了
emulator: onGuestRecvData: [0x4a616800] Adb closed by host
emulator: onGuestClose: [0x4a616800] Adb closed by guest
emulator: onGuestRecvData: [0x4a62de00] Adb closed by host
emulator: onGuestClose: [0x4a62de00] Adb closed by guest
emulator: onGuestRecvData: [0x4a64fe00] Adb closed by host
emulator: onGuestClose: [0x4a64fe00] Adb closed by guest
emulator: onGuestRecvData: [0x4a624a00] Adb closed by host
emulator: onGuestClose: [0x4a624a00] Adb closed by guest
emulator: onGuestRecvData: [0x4a650800] Adb closed by host
emulator: onGuestClose: [0x4a650800] Adb closed by guest
emulator: onGuestRecvData: [0x7de52000] Adb closed by host
emulator: onGuestClose: [0x7de52000] Adb closed by guest
emulator: onGuestRecvData: [0x4a63be00] Adb closed by host
emulator: onGuestClose: [0x4a63be00] Adb closed by guest
emulator: onGuestRecvData: [0x4a63b400] Adb closed by host
emulator: onGuestClose: [0x4a63b400] Adb closed by guest
emulator: onGuestRecvData: [0x4a63c800] Adb closed by host
emulator: onGuestClose: [0x4a63c800] Adb closed by guest
emulator: onGuestRecvData: [0x4a5d4a00] Adb closed by host
emulator: onGuestClose: [0x4a5d4a00] Adb closed by guest
emulator: onGuestRecvData: [0x7de53400] Adb closed by host
emulator: onGuestClose: [0x7de53400] Adb closed by guest
emulator: onGuestRecvData: [0x7de53e00] Adb closed by host
emulator: onGuestClose: [0x7de53e00] Adb closed by guest
emulator: onGuestRecvData: [0x4a629400] Adb closed by host
emulator: onGuestClose: [0x4a629400] Adb closed by guest
emulator: onGuestRecvData: [0x4a629e00] Adb closed by host
emulator: onGuestClose: [0x4a629e00] Adb closed by guest
emulator: _hwFingerprint_connect: connect finger print listen is called
emulator: got message from guest system fingerprint HAL////一直到出现这个log后
因为也看不到界面 log里面也没有成功的提示,所以猜测启动的速度慢 直到打印完才模拟器才完成启动。中途的adb命令有的会被执行 ,有的就一直被挂着。可能和adb与模拟器的连接 因为启动未完成,所以连接一直被关闭有关系。
网友评论