Android Emulator:socketTcpLoopbackClientFor:error:fd 52396高于fd_SETSIZE(32768),但Emulator似乎运行正常

Android Emulator:socketTcpLoopbackClientFor:error:fd 52396高于fd_SETSIZE(32768),但Emulator似乎运行正常,android,android-studio,sockets,android-emulator,android-sdk-tools,Android,Android Studio,Sockets,Android Emulator,Android Sdk Tools,这些错误列表意味着什么,更重要的是如何修复它们?如果有人也可以评论我应该期待的可能问题,这可能会促使我采取一些行动,因为我不清楚,因为我的应用程序正在正常运行和显示 我发现了一个有点类似问题的问题,但在本例中,它阻止了使用“无法连接到端口5037上的adb守护程序”启动emulator,在我的情况下,emulator正在工作(我可以正确导航并点击按钮) 这里是启动期间的控制台 05/31 18:55:37: Launching 'app' on Pixel 3a API 28. $ adb sh

这些错误列表意味着什么,更重要的是如何修复它们?如果有人也可以评论我应该期待的可能问题,这可能会促使我采取一些行动,因为我不清楚,因为我的应用程序正在正常运行和显示

我发现了一个有点类似问题的问题,但在本例中,它阻止了使用“无法连接到端口5037上的adb守护程序”启动emulator,在我的情况下,emulator正在工作(我可以正确导航并点击按钮)

这里是启动期间的控制台

05/31 18:55:37: Launching 'app' on Pixel 3a API 28.
$ adb shell am start -n "com.mycomp.appfirestore/com.mycomp.appfirestore.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.mycomp.appfirestore.test | com.mycomp.appfirestore
Waiting for application to come online: com.mycomp.appfirestore.test | com.mycomp.appfirestore
Connected to process 8310 on device 'emulator-5554'.
Waiting for application to come online: com.mycomp.appfirestore.test | com.mycomp.appfirestore
Connecting to com.mycomp.appfirestore
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/mp.appfirestor: Not late-enabling -Xcheck:jni (already on)
W/mp.appfirestor: Unexpected CPU variant for X86 using defaults: x86
W/ActivityThread: Application com.mycomp.appfirestore is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8604', transport: 'socket'
I/chatty: uid=10086(com.mycomp.appfirestore) identical 2 lines
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/chatty: uid=10086(com.mycomp.appfirestore) identical 1 line
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1312)
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:13 and remote module com.google.android.gms.measurement.dynamite:0
    Selected local version of com.google.android.gms.measurement.dynamite
I/FirebaseInitProvider: FirebaseApp initialization successful
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
W/mp.appfirestor: Unsupported class loader
W/mp.appfirestor: Skipping duplicate class check due to unsupported classloader
W/mp.appfirestor: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
    Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
    Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
    Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
    Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
V/FA: onActivityCreated
W/mp.appfirestor: Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking)
V/FA: App measurement collection enabled
V/FA: App measurement enabled for app package, google app id: com.mycomp.appfirestore, 1:322838517289:android:c8792f2cb4e1fb14ceae38
I/FA: App measurement initialized, version: 28000
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.mycomp.appfirestore
D/FA: Debug-level message logging enabled
W/mp.appfirestor: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
    Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
W/mp.appfirestor: Accessing hidden method Landroid/widget/TextView;->getTextDirectionHeuristic()Landroid/text/TextDirectionHeuristic; (light greylist, linking)
V/FA: Connecting to remote service
D/OpenGLRenderer: Skia GL Pipeline
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 1151344
I/FA: Tag Manager is not found and thus will not be used
D/HostConnection: HostConnection::get() New Host Connection established 0xd8d5af50, tid 8353
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0 
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xd8d167e0: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xd8d167e0: ver 3 0 (tinfo 0xd8d06c70)
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
D/HostConnection: createUnique: call
    HostConnection::get() New Host Connection established 0xd8d5b310, tid 8353
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0 
E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
D/EGL_emulation: eglMakeCurrent: 0xd8d167e0: ver 3 0 (tinfo 0xd8d06c70)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 3 2
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
V/FA: Inactivity, disconnecting from the service
我正在使用的虚拟设备

Name: Pixel_3a_API_28

CPU/ABI: Google Play Intel Atom (x86)

Path: C:\Users\Cast\.android\avd\Pixel_3a_API_28.avd

Target: google_apis_playstore [Google Play] (API level 28)

Skin: pixel_3a

SD Card: 512M

fastboot.chosenSnapshotFile: 

runtime.network.speed: full

hw.accelerometer: yes

hw.device.name: pixel_3a

hw.lcd.width: 1080

hw.initialOrientation: Portrait

image.androidVersion.api: 28

tag.id: google_apis_playstore

hw.mainKeys: no

hw.camera.front: emulated

avd.ini.displayname: Pixel 3a API 28

hw.gpu.mode: auto

hw.ramSize: 1536

PlayStore.enabled: true

fastboot.forceColdBoot: no

hw.cpu.ncore: 4

hw.keyboard: yes

hw.sensors.proximity: yes

hw.dPad: no

hw.lcd.height: 2220

vm.heapSize: 256

skin.dynamic: yes

hw.device.manufacturer: Google

hw.gps: yes

hw.audioInput: yes

image.sysdir.1: system-images\android-28\google_apis_playstore\x86\

showDeviceFrame: yes

hw.camera.back: virtualscene

AvdId: Pixel_3a_API_28

hw.lcd.density: 440

hw.arc: false

hw.device.hash2: MD5:0e6953ebf01bdc6b33a2f54746629c50

fastboot.forceChosenSnapshotBoot: no

fastboot.forceFastBoot: yes

hw.trackBall: no

hw.battery: yes

hw.sdCard: yes

tag.display: Google Play

runtime.network.latency: none

disk.dataPartition.size: 6442450944

hw.sensors.orientation: yes

avd.ini.encoding: UTF-8

hw.gpu.enabled: yes
我更喜欢使用安卓10,但我无法让它工作。我创造了另一个

已安装SDK工具

最后,据我所知,所有模拟器端口:

C:\Users>netstat-ano | findstr“5037”


我通过从最新的安卓Studio金丝雀版本打开emulator,并从我使用的稳定版本运行我的项目,解决了ADB守护程序问题。它就像一个符咒。 至于它为什么会起作用,请阅读。FD_SETSIZE问题已在“Emulator 30.0.12 Canary”上修复,该版本仅适用于Android Studio的最新Canary版本


查看日志的另一个提示是,如果没有在Android Studio中显示,请尝试手动将firebase/firestore插件更新至最新版本。

你称之为“Android Studio的金丝雀版本”是什么?它就像Android Studio的alpha版本,所有新功能都将可用。而且大多数构建都有bug。请在
此处查看它
。有关在stable旁边安装金丝雀的说明
此处
Name: Pixel_3a_API_28

CPU/ABI: Google Play Intel Atom (x86)

Path: C:\Users\Cast\.android\avd\Pixel_3a_API_28.avd

Target: google_apis_playstore [Google Play] (API level 28)

Skin: pixel_3a

SD Card: 512M

fastboot.chosenSnapshotFile: 

runtime.network.speed: full

hw.accelerometer: yes

hw.device.name: pixel_3a

hw.lcd.width: 1080

hw.initialOrientation: Portrait

image.androidVersion.api: 28

tag.id: google_apis_playstore

hw.mainKeys: no

hw.camera.front: emulated

avd.ini.displayname: Pixel 3a API 28

hw.gpu.mode: auto

hw.ramSize: 1536

PlayStore.enabled: true

fastboot.forceColdBoot: no

hw.cpu.ncore: 4

hw.keyboard: yes

hw.sensors.proximity: yes

hw.dPad: no

hw.lcd.height: 2220

vm.heapSize: 256

skin.dynamic: yes

hw.device.manufacturer: Google

hw.gps: yes

hw.audioInput: yes

image.sysdir.1: system-images\android-28\google_apis_playstore\x86\

showDeviceFrame: yes

hw.camera.back: virtualscene

AvdId: Pixel_3a_API_28

hw.lcd.density: 440

hw.arc: false

hw.device.hash2: MD5:0e6953ebf01bdc6b33a2f54746629c50

fastboot.forceChosenSnapshotBoot: no

fastboot.forceFastBoot: yes

hw.trackBall: no

hw.battery: yes

hw.sdCard: yes

tag.display: Google Play

runtime.network.latency: none

disk.dataPartition.size: 6442450944

hw.sensors.orientation: yes

avd.ini.encoding: UTF-8

hw.gpu.enabled: yes
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       7892
  TCP    127.0.0.1:5037         127.0.0.1:49735        ESTABLISHED     7892
  TCP    127.0.0.1:5037         127.0.0.1:51843        ESTABLISHED     7892
  TCP    127.0.0.1:5037         127.0.0.1:51855        ESTABLISHED     7892
  TCP    127.0.0.1:5037         127.0.0.1:51859        ESTABLISHED     7892
  TCP    127.0.0.1:5037         127.0.0.1:51867        ESTABLISHED     7892
  TCP    127.0.0.1:49735        127.0.0.1:5037         ESTABLISHED     9604
  TCP    127.0.0.1:51843        127.0.0.1:5037         ESTABLISHED     13184
  TCP    127.0.0.1:51855        127.0.0.1:5037         ESTABLISHED     9604
  TCP    127.0.0.1:51859        127.0.0.1:5037         ESTABLISHED     9604
  TCP    127.0.0.1:51867        127.0.0.1:5037         ESTABLISHED     9604