连接被拒绝" /> 连接被拒绝 - 且购网" />

且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

模拟器:连接到套接字"127.0.0.1:1970"时出错:111->连接被拒绝

更新时间:2021-09-08 08:32:06

用于修复此问题的补丁已在上游接受. 解决方法仍然可用.

The patch that fixes it has been accepted upstream. Workaround is still available.

此问题引用了英特尔开发人员的解决方法.

Intel dev's workaround quoted from the issue.

我无法代表Google,Google决定何时发布新版本的 仿真器(SDK工具).但是对于现在需要此修复程序的人来说,它是 可以手动将其应用于其Android SDK安装:

I cannot speak for Google, who decides when to issue a new release of the emulator (SDK Tools). But for people who need this fix now, it is possible to manually apply it to their Android SDK installation:

  1. 下载附件中的bios.bin.这是我刚刚上传到 https://android-review.googlesource.com/159501 的文件a>(仍然 审核中).要从评论下载,请使用以下链接 代替:
    https://android-review.googlesource .com/cat/159501%2C1%2Cx86/pc-bios/bios.bin%5E0

  1. Download the attached bios.bin. It is the same file that I just uploaded to https://android-review.googlesource.com/159501 (still under review). To download from the review, use the following link instead:
    https://android-review.googlesource.com/cat/159501%2C1%2Cx86/pc-bios/bios.bin%5E0

备份$ ANDROID_SDK_ROOT/tools/lib/pc-bios/bios.bin($ ANDROID_SDK_ROOT是Android SDK安装目录).

Make a backup of $ANDROID_SDK_ROOT/tools/lib/pc-bios/bios.bin ($ANDROID_SDK_ROOT is the Android SDK installation directory).

将下载的bios.bin复制到$ ANDROID_SDK_ROOT/tools/lib/pc-bios/.

Copy the downloaded bios.bin to $ANDROID_SDK_ROOT/tools/lib/pc-bios/.