React-Native 問題隨記2: com.android.builder.testing.api.DeviceException

來源:互聯網
上載者:User

標籤:err   try   tail   bsp   exe   es2017   不能   and   could not   

錯誤詳細:

Execution failed for task ‘:app:installDebug‘.
> com.android.builder.testing.api.DeviceException: Could not create ADB Bridge. ADB location: D:\AppData\Local\Android\sdk\platform-tools\adb.exe

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 10.89 secs
Could not install the app on the device, read the error above for details.

環境:windows7  真機Redmi Note 4X - 6.0.1

解決方案:

不能建立ADB Bridge 先查看下裝置

發現adbserver出問題了,百度了好久,都不適合我,我是拿真機偵錯模式,米note4x 關閉MIUI最佳化

既然5037連接埠監聽無法啟動,那先來看看這個連接埠被誰監聽了吧

 

 啟動工作管理員--進程,上面菜單-查看--選擇列--PID   列表顯示pid後找到對應9600的應用,發現是adb.exe 沒問題啊,為什麼會監聽不到呢

那重啟下試試吧,果然重啟後沒問題了。

 

 

 app終於註冊成功

 

React-Native 問題隨記2: com.android.builder.testing.api.DeviceException

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.