- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我一直在尝试在 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/
我使用下拉菜单提供一些不同的链接,但我希望这些链接在同一选项卡中打开,而不是在新选项卡中打开。这是我找到的代码,但我对 Javascript 非常缺乏知识 var urlmenu = docume
我对 javascript 不太了解。但我需要一个垂直菜单上的下拉菜单,它是纯 JavaScript,所以我从 W3 复制/粘贴脚本:https://www.w3schools.com/howto/t
我已经坐了 4 个小时,试图让我的导航显示下 zipper 接垂直,但它继续水平显示它们。我无法弄清楚为什么会发生这种情况或如何解决它。 如果有人能告诉我我做错了什么,我将不胜感激。我有一个潜移默化的
我正在尝试创建选项卡式 Accordion 样式下拉菜单。我使用 jQuery 有一段时间了,但无法使事件状态达到 100%。 我很确定这是我搞砸的 JS。 $('.service-button').
对于那些从未访问过 Dropbox 的人,这里是链接 https://www.dropbox.com/ 查看“登录”的下拉菜单链接。我如何创建这样的下 zipper 接? 最佳答案 这是 fiddle
我正在制作一个 Liferay 主题,但我在尝试设计导航菜单的样式时遇到了很多麻烦。我已经为那些没有像这样下拉的人改变了导航链接上的经典主题悬停功能: .aui #navigation .nav li
如果您将鼠标悬停在 li 上,则会出现一个下拉菜单。如果您将指针向下移至悬停时出现的 ul,我希望链接仍然带有下划线,直到您将箭头从 ul 或链接移开。这样你就知道当菜单下拉时你悬停在哪个菜单上。 知
我有一个带有多个下拉菜单的导航栏。因此,当我单击第一个链接时,它会打开下拉菜单,但是当我单击第二个链接时,第一个下拉菜单不会关闭。 (所以如果用户点击第二个链接我想关闭下拉菜单) // main.js
我正在尝试制作一个导航下拉菜单(使用 Bootstrap 3),其中链接文本在同一行上有多个不同的对齐方式。 在下面的代码中,下拉列表 A 中的链接在 HTML 中有空格字符来对齐它们,但是空白被忽略
我希望有人能帮我解决这个 Bootstrap 问题,因为我很困惑。 有人要求我在底部垂直对齐图像和其中包含图像的链接。 我面临的问题是他们还希望链接在链接/图像组合上具有 pull-right,这会杀
我正在构建一个 Rails 应用程序,并希望指向我的类的每个实例的“显示”页面的链接显示在“索引”页面的下拉列表中。我目前正在使用带有 options_from_collection_for_sele
我有以下 Bootstrap3 导航菜单 ( fiddle here )。我想设置“突出显示”项及其子链接与下拉列表 1 和 2 链接不同的链接文本(和悬停)的样式。我还希望能够以不同于 Highli
我对导航栏中的下拉菜单有疑问。对于普通的导航链接(无下拉菜单),我将菜单文本放在 H3 中,但是当我尝试对下 zipper 接执行相同操作时,箭头不在标题旁边,而是在标题下方。我决定用 span 替换
我是一名优秀的程序员,十分优秀!