Android Studio模拟器在没有互联网连接的情况下无法启动(Linux)

a64a0gku  于 2022-11-03  发布在  Android
关注(0)|答案(1)|浏览(272)

我正在使用parrot操作系统。这是一个基于Debian的操作系统。我安装了android studio。如果我运行模拟器时,我连接到互联网,那么它工作正常,但当我运行它没有互联网,那么它不工作。我试图运行它使用模拟器,然后我看到一些日志

以下是日志

INFO    | Android emulator version 31.3.10.0 (build_id 8807927) (CL:N/A)
emulator: INFO: Found systemPath /home/ak/Android/Sdk/system-images/android-31/google_apis_playstore/x86_64/
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
ERROR   | Failed to retrieve DNS servers list from the system
WARNING | Cannot find system DNS servers! Name resolution will be disabled.
WARNING | cannot add library /home/ak/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
INFO    | added library /home/ak/Android/Sdk/emulator/lib64/vulkan/libvulkan.so
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

INFO    | configAndStartRenderer: setting vsync to 60 hz
INFO    | Sending adb public key [QAAAAEGbpF0/C1JnhouDIUDMVtRp56Fxfg7GxFt7tFMnSGjFB7S9ZAT+63u5f3c5SzRepbMsiA9ONkKnuT7GyC4B7na+KvyvN2MLIvs33yLgbsIm+KGFwl+SO2ZyCEdxuK7jT4zWiQOjADD+RGZZYKNZGzsNME5VOV3dnIes4fUysJyxVwVRyN17dQi6vPvH51lQES83sH10zEiw4So1OFSliS5hAzMIuyv8r3YcUwH2VgwpYvObIqEi22/ZZuHbAeYdUkJXOiPchHCCTGfnB6XoZyXpbHwccLEvbSwNED8yIMh23qAq8tILfRuK9c+oxdXpjlLvZvBU7ZSl0Wcymwx+ibeXAZ3Dv+lLDDWdY2HOJABOyw8CSMpPiZukD16sXoXSAZx0HZZC2/TbRZ+mg/02UqJlJPCEg1cbyFxW4gw1gtvgL2NCAfuWRbNjZTeR9zKXxpkSYW1bJb9XmGmH9YQQS2ZWNwdn9atG634JZAFyjKKXsznUuTnSCXYGGtRPt0NluAU2e9Mcni0rIzntXStRbacmy+RhLZ0xzw5mAMrvV/4H/Lfj9TAHVZC7tQuOCBS0LS8g/n6mo+PXZviML+ArMmZZhnJaN6XUibIlSA9/aI8jkbKYmhWQEN5d5X8l1kg79BhAmk28zotPgx2/YNv/2NzX89omdpq26DDlZrwWfN1n3t6BFQEAAQA= ak@unknown]
INFO    | injectedQemuChannel!
INFO    | Informing listeners of injection.
INFO    | Rootcanal has  been activated.
qemu-system-x86_64: -chardev socket,port=44369,host=::1,nowait,nodelay,ipv6,id=modem: address resolution failed for ::1:44369: Name or service not known

我们不能在没有互联网的情况下使用Android Studio模拟器吗?

ndasle7k

ndasle7k1#

对于包括我在内的许多遇到这个问题的人来说,disabling IPv6是有效的:


# sysctl net.ipv6.conf.all.disable_ipv6=1

just on the loopback interface


# sysctl net.ipv6.conf.lo.disable_ipv6=1

Forsome,但是,执行相反的操作显然可以解决问题:在禁用IPv6的位置启用IPv6。

相关问题