我一直试图在2010年中期的Macbook Pro Mac OS X Yosemite上使用Android Studio在Android模拟器中启动应用程序。
当我从Android Studio中启动模拟器时,它永远不会完成启动(屏幕仍为黑色)。所以我尝试使用-debug-all从终端启动它,我注意到它一直试图这样做:
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
我尝试使用Nexus 5 API 21 x86和Galaxy Nexus API 21,我也禁用了主机GPU但没有成功。我还禁用了防火墙以排除网络规则问题,但我得到了同样的错误。
知道可能出现什么问题?这是完整的日志:
emulator:Found AVD name 'Galaxy_Nexus_API_21'
emulator:Found AVD target architecture: x86
emulator:Looking for emulator-x86 to emulate 'x86' CPU
emulator:Probing program: /Users/mymacuser/Library/Android/sdk/tools/emulator64-x86
emulator:Found target-specific emulator binary: /Users/mymacuser/Library/Android/sdk/tools/emulator64-x86
emulator:Probing for: /Users/mymacuser/Library/Android/sdk/tools/libOpenglRender.dylib
emulator:Probing for: /Users/mymacuser/Library/Android/sdk/tools/lib/libOpenglRender.dylib
emulator:Found OpenGLES emulation libraries in /Users/mymacuser/Library/Android/sdk/tools/lib
emulator:Setting LD_LIBRARY_PATH=/Users/mymacuser/Library/Android/sdk/tools/lib
emulator: found SDK root at /Users/mymacuser/Library/Android/sdk
emulator: Android virtual device file at: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.ini
emulator: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.ini: parsing as .ini file
emulator: 1: KEY='avd.ini.encoding' VALUE='UTF-8'
emulator: 2: KEY='path' VALUE='/Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd'
emulator: 3: KEY='path.rel' VALUE='avd/Galaxy_Nexus_API_21.avd'
emulator: 4: KEY='target' VALUE='Google Inc.:Google APIs:21'
emulator: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.ini: parsing finished
emulator: virtual device content at /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd
emulator: virtual device config file: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/config.ini
emulator: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/config.ini: parsing as .ini file
emulator: 1: KEY='avd.ini.encoding' VALUE='UTF-8'
emulator: 2: KEY='AvdId' VALUE='Galaxy_Nexus_API_21'
emulator: 3: KEY='abi.type' VALUE='x86'
emulator: 4: KEY='avd.ini.displayname' VALUE='Galaxy Nexus API 21'
emulator: 5: KEY='disk.dataPartition.size' VALUE='200M'
emulator: 6: KEY='hw.accelerometer' VALUE='yes'
emulator: 7: KEY='hw.audioInput' VALUE='yes'
emulator: 8: KEY='hw.battery' VALUE='yes'
emulator: 9: KEY='hw.camera.back' VALUE='none'
emulator: 10: KEY='hw.camera.front' VALUE='none'
emulator: 11: KEY='hw.cpu.arch' VALUE='x86'
emulator: 12: KEY='hw.dPad' VALUE='no'
emulator: 13: KEY='hw.device.hash2' VALUE='MD5:6930e145748b87e87d3f40cabd140a41'
emulator: 14: KEY='hw.device.manufacturer' VALUE='Google'
emulator: 15: KEY='hw.device.name' VALUE='Galaxy Nexus'
emulator: 16: KEY='hw.gps' VALUE='yes'
emulator: 17: KEY='hw.gpu.enabled' VALUE='no'
emulator: 18: KEY='hw.keyboard' VALUE='yes'
emulator: 19: KEY='hw.lcd.density' VALUE='320'
emulator: 20: KEY='hw.mainKeys' VALUE='no'
emulator: 21: KEY='hw.ramSize' VALUE='1024'
emulator: 22: KEY='hw.sdCard' VALUE='yes'
emulator: 23: KEY='hw.sensors.orientation' VALUE='yes'
emulator: 24: KEY='hw.sensors.proximity' VALUE='yes'
emulator: 25: KEY='hw.trackBall' VALUE='no'
emulator: 26: KEY='image.sysdir.1' VALUE='system-images/android-21/google_apis/x86/'
emulator: 27: KEY='runtime.network.latency' VALUE='none'
emulator: 28: KEY='runtime.network.speed' VALUE='full'
emulator: 29: KEY='runtime.scalefactor' VALUE='auto'
emulator: 30: KEY='sdcard.path' VALUE='/Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/sdcard.img'
emulator: 31: KEY='skin.dynamic' VALUE='no'
emulator: 32: KEY='skin.name' VALUE='galaxy_nexus'
emulator: 33: KEY='skin.path' VALUE='/Applications/Android Studio.app/Contents/plugins/android/lib/device-art-resources/galaxy_nexus'
emulator: 34: KEY='snapshot.present' VALUE='yes'
emulator: 35: KEY='tag.display' VALUE='Google APIs'
emulator: 36: KEY='tag.id' VALUE='google_apis'
emulator: 37: KEY='vm.heapSize' VALUE='64'
emulator: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/config.ini: parsing finished
emulator: using core hw config path: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/hardware-qemu.ini
emulator: Found target field in root AVD .ini file: 'Google Inc.:Google APIs:21'
emulator: Found AVD target API level: 21
emulator: found image search path: system-images/android-21/google_apis/x86/
emulator: found a total of 1 search paths for this AVD
emulator: found build.prop in search dir: /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86/
emulator: Read property file at /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//build.prop
emulator: no boot.prop in search dir: /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86/
emulator: No boot.prop property file found.
emulator: found skin 'galaxy_nexus' in directory: /Applications/Android Studio.app/Contents/plugins/android/lib/device-art-resources
emulator: autoconfig: -skin galaxy_nexus
emulator: autoconfig: -skindir /Applications/Android Studio.app/Contents/plugins/android/lib/device-art-resources
emulator: no skin-specific hardware.ini in /Applications/Android Studio.app/Contents/plugins/android/lib/device-art-resources
emulator: adding binding BUTTON_CALL to F3
emulator: adding binding BUTTON_HANGUP to F4
emulator: adding binding BUTTON_HOME to Home
emulator: adding binding BUTTON_BACK to Escape
emulator: adding binding BUTTON_MENU to F2
emulator: adding binding BUTTON_MENU to PageUp
emulator: adding binding BUTTON_STAR to Shift-F2
emulator: adding binding BUTTON_STAR to PageDown
emulator: adding binding BUTTON_POWER to F7
emulator: adding binding BUTTON_SEARCH to F5
emulator: adding binding BUTTON_CAMERA to Ctrl-Keypad_5
emulator: adding binding BUTTON_CAMERA to Ctrl-F3
emulator: adding binding BUTTON_VOLUME_UP to Keypad_Plus
emulator: adding binding BUTTON_VOLUME_UP to Ctrl-F5
emulator: adding binding BUTTON_VOLUME_DOWN to Keypad_Minus
emulator: adding binding BUTTON_VOLUME_DOWN to Ctrl-F6
emulator: adding binding TOGGLE_NETWORK to F8
emulator: adding binding TOGGLE_TRACING to F9
emulator: adding binding TOGGLE_FULLSCREEN to F9
emulator: adding binding BUTTON_DPAD_CENTER to Keypad_5
emulator: adding binding BUTTON_DPAD_UP to Keypad_8
emulator: adding binding BUTTON_DPAD_LEFT to Keypad_4
emulator: adding binding BUTTON_DPAD_RIGHT to Keypad_6
emulator: adding binding BUTTON_DPAD_DOWN to Keypad_2
emulator: adding binding TOGGLE_TRACKBALL to F6
emulator: adding binding SHOW_TRACKBALL to F6
emulator: adding binding CHANGE_LAYOUT_PREV to Keypad_7
emulator: adding binding CHANGE_LAYOUT_PREV to Ctrl-F11
emulator: adding binding CHANGE_LAYOUT_NEXT to Keypad_9
emulator: adding binding CHANGE_LAYOUT_NEXT to Ctrl-F12
emulator: adding binding ONION_ALPHA_UP to Keypad_Multiply
emulator: adding binding ONION_ALPHA_DOWN to Keypad_Divide
emulator: keyset loaded from: /Users/mymacuser/.android/default.keyset
emulator: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/emulator-user.ini: parsing as .ini file
emulator: 1: KEY='window.x' VALUE='0'
emulator: 2: KEY='window.y' VALUE='23'
emulator: 3: KEY='uuid' VALUE='1419171378365'
emulator: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/emulator-user.ini: parsing finished
emulator: trying to load skin file '/Applications/Android Studio.app/Contents/plugins/android/lib/device-art-resources/galaxy_nexus/layout'
emulator: found kernel-qemu in search dir: /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86/
emulator: autoconfig: -kernel /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//kernel-qemu
emulator: Auto-detect: Kernel image requires legacy device naming scheme.
emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
emulator: found ramdisk.img in search dir: /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86/
emulator: autoconfig: -ramdisk /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//ramdisk.img
emulator: found system.img in search dir: /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86/
emulator: Using initial system image: /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//system.img
emulator: autoconfig: -data /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/userdata-qemu.img
emulator: autoconfig: -initdata /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/userdata.img
emulator: autoconfig: -cache /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/cache.img
emulator: autoconfig: -sdcard /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/sdcard.img
emulator: Physical RAM size: 1024MB
emulator: no qwerty2.kcm in search dir: /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86/
emulator: CPU Acceleration: working
emulator: CPU Acceleration status: HAX (version 2) is installed and usable.
emulator: Target arch = 'x86'
emulator: Auto-config: -qemu -cpu qemu32
emulator: <memoryFile>: parsing as .ini file
emulator: <memoryFile>: parsing finished
Content of hardware configuration file:
hw.cpu.arch = x86
hw.cpu.model = qemu32
hw.ramSize = 1024
hw.screen = touch
hw.mainKeys = no
hw.trackBall = no
hw.keyboard = yes
hw.keyboard.lid = no
hw.keyboard.charmap = qwerty2
hw.dPad = no
hw.gsmModem = yes
hw.gps = yes
hw.battery = yes
hw.accelerometer = yes
hw.audioInput = yes
hw.audioOutput = yes
hw.sdCard = yes
hw.sdCard.path = /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/sdcard.img
disk.cachePartition = yes
disk.cachePartition.path = /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/cache.img
disk.cachePartition.size = 66m
hw.lcd.width = 720
hw.lcd.height = 1280
hw.lcd.depth = 16
hw.lcd.density = 320
hw.lcd.backlight = yes
hw.gpu.enabled = no
hw.initialOrientation = portrait
hw.camera.back = none
hw.camera.front = none
vm.heapSize = 64
hw.sensors.proximity = yes
hw.sensors.magnetic_field = yes
hw.sensors.orientation = yes
hw.sensors.temperature = yes
hw.useext4 = yes
kernel.path = /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//kernel-qemu
kernel.parameters = androidboot.hardware=goldfish clocksource=pit android.checkjni=1
kernel.newDeviceNaming = no
kernel.supportsYaffs2 = no
disk.ramdisk.path = /Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//ramdisk.img
disk.systemPartition.size = 750m
disk.dataPartition.path = /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/userdata-qemu.img
disk.dataPartition.size = 550m
avd.name = Galaxy_Nexus_API_21
.
QEMU options list:
emulator: argv[00] = "/Users/mymacuser/Library/Android/sdk/tools/emulator64-x86"
emulator: argv[01] = "-netspeed"
emulator: argv[02] = "full"
emulator: argv[03] = "-netdelay"
emulator: argv[04] = "none"
emulator: argv[05] = "-enable-hax"
emulator: argv[06] = "-android-hw"
emulator: argv[07] = "/Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/hardware-qemu.ini"
Concatenated QEMU options:
/Users/mymacuser/Library/Android/sdk/tools/emulator64-x86 -netspeed full -netdelay none -enable-hax -android-hw /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/hardware-qemu.ini
emulator: android_qemud_init
emulator: Registered QEMUD service boot-properties
emulator: registered 'boot-properties' qemud service
emulator: android_qemud_init
emulator: Registered QEMUD service hw-control
emulator: android_hw_control_init: hw-control qemud handler initialized
emulator: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/hardware-qemu.ini: parsing as .ini file
emulator: 1: KEY='hw.cpu.arch' VALUE='x86'
emulator: 2: KEY='hw.cpu.model' VALUE='qemu32'
emulator: 3: KEY='hw.ramSize' VALUE='1024'
emulator: 4: KEY='hw.screen' VALUE='touch'
emulator: 5: KEY='hw.mainKeys' VALUE='no'
emulator: 6: KEY='hw.trackBall' VALUE='no'
emulator: 7: KEY='hw.keyboard' VALUE='yes'
emulator: 8: KEY='hw.keyboard.lid' VALUE='no'
emulator: 9: KEY='hw.keyboard.charmap' VALUE='qwerty2'
emulator: 10: KEY='hw.dPad' VALUE='no'
emulator: 11: KEY='hw.gsmModem' VALUE='yes'
emulator: 12: KEY='hw.gps' VALUE='yes'
emulator: 13: KEY='hw.battery' VALUE='yes'
emulator: 14: KEY='hw.accelerometer' VALUE='yes'
emulator: 15: KEY='hw.audioInput' VALUE='yes'
emulator: 16: KEY='hw.audioOutput' VALUE='yes'
emulator: 17: KEY='hw.sdCard' VALUE='yes'
emulator: 18: KEY='hw.sdCard.path' VALUE='/Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/sdcard.img'
emulator: 19: KEY='disk.cachePartition' VALUE='yes'
emulator: 20: KEY='disk.cachePartition.path' VALUE='/Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/cache.img'
emulator: 21: KEY='disk.cachePartition.size' VALUE='66m'
emulator: 22: KEY='hw.lcd.width' VALUE='720'
emulator: 23: KEY='hw.lcd.height' VALUE='1280'
emulator: 24: KEY='hw.lcd.depth' VALUE='16'
emulator: 25: KEY='hw.lcd.density' VALUE='320'
emulator: 26: KEY='hw.lcd.backlight' VALUE='yes'
emulator: 27: KEY='hw.gpu.enabled' VALUE='no'
emulator: 28: KEY='hw.initialOrientation' VALUE='portrait'
emulator: 29: KEY='hw.camera.back' VALUE='none'
emulator: 30: KEY='hw.camera.front' VALUE='none'
emulator: 31: KEY='vm.heapSize' VALUE='64'
emulator: 32: KEY='hw.sensors.proximity' VALUE='yes'
emulator: 33: KEY='hw.sensors.magnetic_field' VALUE='yes'
emulator: 34: KEY='hw.sensors.orientation' VALUE='yes'
emulator: 35: KEY='hw.sensors.temperature' VALUE='yes'
emulator: 36: KEY='hw.useext4' VALUE='yes'
emulator: 37: KEY='kernel.path' VALUE='/Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//kernel-qemu'
emulator: 38: KEY='kernel.parameters' VALUE='androidboot.hardware=goldfish clocksource=pit android.checkjni=1'
emulator: 39: KEY='kernel.newDeviceNaming' VALUE='no'
emulator: 40: KEY='kernel.supportsYaffs2' VALUE='no'
emulator: 41: KEY='disk.ramdisk.path' VALUE='/Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//ramdisk.img'
emulator: 42: KEY='disk.systemPartition.initPath' VALUE='/Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//system.img'
emulator: 43: KEY='disk.systemPartition.size' VALUE='750m'
emulator: 44: KEY='disk.dataPartition.path' VALUE='/Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/userdata-qemu.img'
emulator: 45: KEY='disk.dataPartition.size' VALUE='550m'
emulator: 46: KEY='avd.name' VALUE='Galaxy_Nexus_API_21'
emulator: /Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/hardware-qemu.ini: parsing finished
emulator: Using kernel serial device prefix: ttyS
emulator: Ramdisk image contains fstab.goldfish file
emulator: Found format of system partition: 'ext4'
emulator: Found format of userdata partition: 'ext4'
emulator: Found format of cache partition: 'ext4'
emulator: system partition format: ext4
emulator: Mapping 'system' partition image to /tmp/android-mymacuser/emulator-py27T0
emulator: nand_add_dev: system,size=0x2ee00000,file=/tmp/android-mymacuser/emulator-py27T0,initfile=/Users/mymacuser/Library/Android/sdk/system-images/android-21/google_apis/x86//system.img,pagesize=512,extrasize=0
emulator: userdata partition format: ext4
emulator: nand_add_dev: userdata,size=0x22600000,file=/Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/userdata-qemu.img,pagesize=512,extrasize=0
emulator: cache partition format: ext4
emulator: nand_add_dev: cache,size=0x4200000,file=/Users/mymacuser/.android/avd/Galaxy_Nexus_API_21.avd/cache.img,pagesize=512,extrasize=0
emulator: android_qemud_init
emulator: Registered QEMUD service boot-properties
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '64m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '320'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '0'
emulator: android_qemud_init
emulator: Registered QEMUD service gsm
emulator: android_qemud_init
emulator: Registered QEMUD service gps
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'none'
emulator: android_qemud_init
emulator: Registered QEMUD service camera
emulator: android_camera_service_init: Registered 'camera' qemud service
emulator: IP address of your DNS(s): 192.168.1.1
emulator: Initializing hardware OpenGLES emulation support
HAX is working and emulator runs in fast virt mode
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 androidboot.hardware=goldfish clocksource=pit android.checkjni=1 ndns=1
emulator: trying to find: /Users/mymacuser/Library/Android/sdk/tools/bios.bin
emulator: trying to find: /Users/mymacuser/Library/Android/sdk/tools/lib/pc-bios/bios.bin
emulator: trying to find: /Users/mymacuser/Library/Android/sdk/tools/vgabios-cirrus.bin
emulator: trying to find: /Users/mymacuser/Library/Android/sdk/tools/lib/pc-bios/vgabios-cirrus.bin
emulator: autoconfig: -scale 0.431831
emulator: android_qemud_init
emulator: Registered QEMUD service sensors
emulator: android_hw_sensors_init: sensors qemud service initialized
emulator: Forcing ro.adb.qemud to "0".
emulator: control console listening on port 5554, ADB on port 5555
Using config file: /Users/mymacuser/.android/modem-nv-ram-5554
Setting value of oper_name_index to 2 (2)Setting value of selection_mode to 0 (0)Setting value of oper_index to 0 (0)Setting value of oper_count to 2 (2)Setting value of in_ecbm to 0 (0)Setting value of prl_version to 0 (0)Setting value of preferred_mode to 15 (15)Setting value of cdma_subscription_source to 1 (1)Setting value of cdma_roaming_pref to 2 (2)emulator: sent '0012host:emulator:5555' to ADB server
emulator: ping program: /Users/mymacuser/Library/Android/sdk/tools/ddms
emulator: ping command: /Users/mymacuser/Library/Android/sdk/tools/ddms ping emulator standalone "NVIDIA Corporation" "NVIDIA GeForce 320M OpenGL Engine" "2.1 NVIDIA-10.0.19 310.90.10.05b12"
emulator: EVENT: kEventMouseMotion x=475 y=330 xrel=475 yrel=330 button=0
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 30
答案 0 :(得分:2)
有点晚了,但我对这个问题有点说法。
似乎与SDK一起使用的内核默认尝试查找多点触控设备。我有同样的问题,我尝试在127.0.0.1:1970开放TCP套接字,发出:
nc -l 1970
在这一点上,我使用以下选项启动了模拟器:
-verbose -debug all -show-kernel
并从SDKCtl多点触控获得有关尝试与被控制的套接字上的某些设备建立握手的消息。
这让我想到了对多点触控设备的需求(我不知道以什么方式)。所以我查找了有关触摸屏的选项,发现触摸屏默认启用为多点触控(这在模拟器输出中的某处报告)。要使其表现为简单的触摸屏,需要在调用模拟器时添加以下选项:
-screen touch
此时模拟器不再尝试连接到127.0.0.1:1970。
我补充说,在我的情况下,即使打开多点触控,模拟器也能够启动(经过很长时间 - 这也是没有多点触控的情况)。