【问题标题】:How to permanently remove adb device emulator on macos?如何在 macos 上永久删除 adb 设备模拟器?
【发布时间】:2020-10-18 03:20:54
【问题描述】:

我已经通过以下方式卸载了 android studio:

rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
rm -Rf ~/AndroidStudioProjects
rm -Rf ~/.gradle
rm -Rf ~/.android
rm -Rf ~/Library/Android*

我还卸载了 Genymotion。 我真的有 0 个模拟器正在运行,甚至没有一个 android 设备来插件。

~ ???? adb kill-server
~ ???? gradle --stop
No Gradle daemons are running.
~ ???? adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
emulator-5562   offline

如您所见,我仍然连接了一个 emulator-5562。我想从我的系统中删除它。这个模拟器与我的实用程序监视器中的 adb 相同,当我运行 ~ ???? adb devices 时它会不断重启 无论如何,我想删除模拟器,以便我可以重新安装 Android Studio 而不会得到

Error running adb: more than one device/emulator

【问题讨论】:

    标签: android adb emulation android-studio-3.0 genymotion


    【解决方案1】:

    显然我已经安装了一些应用程序,Native Access 充当了一个 android 模拟器。

    ~ ? adb devices -l
    List of devices attached
    emulator-5562          offline transport_id:1
    
    ~ ? lsof | grep 5563
    NTKDaemon  655 MACUSER   16u     IPv4 0x8a8f7d42123f5659        0t0                 TCP localhost:5563 (LISTEN)
    NTKDaemon  655 MACUSER   48u     IPv4 0x8a8f7d42024373f9        0t0                 TCP localhost:5563->localhost:53496 (ESTABLISHED)
    adb       5362 MACUSER   12u     IPv4 0x8a8f7d420a4a5c79        0t0                 TCP localhost:53496->localhost:5563 (ESTABLISHED)
    ~ ? kill -9 655
    ~ ? adb devices -l
    List of devices attached
    
    ~ ? adb devices
    * daemon not running; starting now at tcp:5037
    * daemon started successfully
    List of devices attached
    
    ~ ? 
    

    【讨论】:

      猜你喜欢
      • 2022-01-12
      • 2010-09-05
      • 2016-04-07
      • 1970-01-01
      • 2011-11-22
      • 1970-01-01
      • 1970-01-01
      • 2014-10-06
      • 1970-01-01
      相关资源
      最近更新 更多