輸入adb shell 時 提示error: more than one device and emulator

來源:互聯網
上載者:User

標籤:

第一種情況:確實用多個裝置或者模擬器
   解決辦法:(指定串連某一個裝置或者模擬器)

1、擷取模擬器/裝置列表

   adb devices

2、指定device來執行adb shell

    adb -s devicename shell

例如:

  adb -s emulator-5554 shell

在多device的時候,執行adb命令一般都需要用參數-s指定device。例如卸載emulator-5554上的包com.soft.camera     adb -s emulator-5554 uninstall com.soft.camera

第二種情況下:確實有一個裝置或者模擬器(之所以顯示有多個是因為此裝置用過兩次 使用命令 adb devices 會看到這個裝置有兩種狀:offline 和 device)
    解決辦法:
   一般辦法:在命令視窗輸入adb start-server 重新啟動adb.exe服務
   如果上述方法不可以,終極方法:開啟工作列,選擇“進程”選項卡,找到adb.exe進程,結束之,重新啟動就完事OK啦(或者在命令視窗輸入命令adb kill-server )

輸入adb shell 時 提示error: more than one device and emulator

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.