草庐IT

Android 模拟器无法在 Macbook Pro 上完成启动(连接到套接字 '127.0.0.1:1970' 时出错)

coder 2023-12-16 原文

我一直在尝试在 2010 年年中的 Macbook Pro 中使用 Android Studio 在 Mac OS X Yosemite 上的 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

最佳答案

有点晚了,但我对这个问题有话要说。

似乎默认情况下,与 SDK 一起提供的内核会尝试查找多点触控设备。我有同样的问题,我试图通过发出以下命令在 127.0.0.1:1970 打开一个 TCP 套接字:

nc -l 1970

此时我使用以下选项启动了模拟器:

-verbose -debug all -show-kernel

并从 SDKCtl 多点触控收到一条消息,关于尝试与受控套接字上的某些设备建立握手。

这让我想到了对多点触控设备的需求(我不知道是什么方式)。所以我寻找有关触摸屏的选项,发现触摸屏默认启用为多点触控(这在模拟器输出的某处报告)。要让它像一个简单的触摸屏一样工作,需要在调用模拟器时添加以下选项:

-screen touch

此时模拟器不再尝试连接到 127.0.0.1:1970。

我补充说,在我的情况下,即使保持多点触控,模拟器也能够启动(经过很长一段时间 - 在没有多点触控的情况下也是如此)。

关于Android 模拟器无法在 Macbook Pro 上完成启动(连接到套接字 '127.0.0.1:1970' 时出错),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27590424/

有关Android 模拟器无法在 Macbook Pro 上完成启动(连接到套接字 '127.0.0.1:1970' 时出错)的更多相关文章

  1. ruby-on-rails - rails : "missing partial" when calling 'render' in RSpec test - 2

    我正在尝试测试是否存在表单。我是Rails新手。我的new.html.erb_spec.rb文件的内容是:require'spec_helper'describe"messages/new.html.erb"doit"shouldrendertheform"dorender'/messages/new.html.erb'reponse.shouldhave_form_putting_to(@message)with_submit_buttonendendView本身,new.html.erb,有代码:当我运行rspec时,它失败了:1)messages/new.html.erbshou

  2. ruby-on-rails - 'compass watch' 是如何工作的/它是如何与 rails 一起使用的 - 2

    我在我的项目目录中完成了compasscreate.和compassinitrails。几个问题:我已将我的.sass文件放在public/stylesheets中。这是放置它们的正确位置吗?当我运行compasswatch时,它不会自动编译这些.sass文件。我必须手动指定文件:compasswatchpublic/stylesheets/myfile.sass等。如何让它自动运行?文件ie.css、print.css和screen.css已放在stylesheets/compiled。如何在编译后不让它们重新出现的情况下删除它们?我自己编译的.sass文件编译成compiled/t

  3. ruby - ECONNRESET (Whois::ConnectionError) - 尝试在 Ruby 中查询 Whois 时出错 - 2

    我正在用Ruby编写一个简单的程序来检查域列表是否被占用。基本上它循环遍历列表,并使用以下函数进行检查。require'rubygems'require'whois'defcheck_domain(domain)c=Whois::Client.newc.query("google.com").available?end程序不断出错(即使我在google.com中进行硬编码),并打印以下消息。鉴于该程序非常简单,我已经没有什么想法了-有什么建议吗?/Library/Ruby/Gems/1.8/gems/whois-2.0.2/lib/whois/server/adapters/base.

  4. ruby - 在 64 位 Snow Leopard 上使用 rvm、postgres 9.0、ruby 1.9.2-p136 安装 pg gem 时出现问题 - 2

    我想为Heroku构建一个Rails3应用程序。他们使用Postgres作为他们的数据库,所以我通过MacPorts安装了postgres9.0。现在我需要一个postgresgem并且共识是出于性能原因你想要pggem。但是我对我得到的错误感到非常困惑当我尝试在rvm下通过geminstall安装pg时。我已经非常明确地指定了所有postgres目录的位置可以找到但仍然无法完成安装:$envARCHFLAGS='-archx86_64'geminstallpg--\--with-pg-config=/opt/local/var/db/postgresql90/defaultdb/po

  5. ruby-on-rails - Rails 3.2.1 中 ActionMailer 中的未定义方法 'default_content_type=' - 2

    我在我的项目中添加了一个系统来重置用户密码并通过电子邮件将密码发送给他,以防他忘记密码。昨天它运行良好(当我实现它时)。当我今天尝试启动服务器时,出现以下错误。=>BootingWEBrick=>Rails3.2.1applicationstartingindevelopmentonhttp://0.0.0.0:3000=>Callwith-dtodetach=>Ctrl-CtoshutdownserverExiting/Users/vinayshenoy/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.1/lib/action_mailer

  6. ruby - 在 jRuby 中使用 'fork' 生成进程的替代方案? - 2

    在MRIRuby中我可以这样做:deftransferinternal_server=self.init_serverpid=forkdointernal_server.runend#Maketheserverprocessrunindependently.Process.detach(pid)internal_client=self.init_client#Dootherstuffwithconnectingtointernal_server...internal_client.post('somedata')ensure#KillserverProcess.kill('KILL',

  7. ruby - 主要 :Object when running build from sublime 的未定义方法 `require_relative' - 2

    我已经从我的命令行中获得了一切,所以我可以运行rubymyfile并且它可以正常工作。但是当我尝试从sublime中运行它时,我得到了undefinedmethod`require_relative'formain:Object有人知道我的sublime设置中缺少什么吗?我正在使用OSX并安装了rvm。 最佳答案 或者,您可以只使用“require”,它应该可以正常工作。我认为“require_relative”仅适用于ruby​​1.9+ 关于ruby-主要:Objectwhenrun

  8. ruby - 无法让 RSpec 工作—— 'require' : cannot load such file - 2

    我花了三天的时间用头撞墙,试图弄清楚为什么简单的“rake”不能通过我的规范文件。如果您遇到这种情况:任何文件夹路径中都不要有空格!。严重地。事实上,从现在开始,您命名的任何内容都没有空格。这是我的控制台输出:(在/Users/*****/Desktop/LearningRuby/learn_ruby)$rake/Users/*******/Desktop/LearningRuby/learn_ruby/00_hello/hello_spec.rb:116:in`require':cannotloadsuchfile--hello(LoadError) 最佳

  9. ruby-on-rails - 新 Rails 项目 : 'bundle install' can't install rails in gemfile - 2

    我已经像这样安装了一个新的Rails项目:$railsnewsite它执行并到达:bundleinstall但是当它似乎尝试安装依赖项时我得到了这个错误Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/rubyextconf.rbcheckingforlibkern/OSAtomic.h...yescreatingMakefilemake"DESTDIR="cleanmake"DESTDIR="

  10. ruby-on-rails - rspec should have_select ('cars' , :options => ['volvo' , 'saab' ] 不工作 - 2

    关闭。这个问题需要detailsorclarity.它目前不接受答案。想改进这个问题吗?通过editingthispost添加细节并澄清问题.关闭8年前。Improvethisquestion在首页我有:汽车:VolvoSaabMercedesAudistatic_pages_spec.rb中的测试代码:it"shouldhavetherightselect"dovisithome_pathit{shouldhave_select('cars',:options=>['volvo','saab','mercedes','audi'])}end响应是rspec./spec/request

随机推荐