2018年12月17日 星期一

android studio如果遇到app不能連線起動(Error while Installing APK),可能是這樣...

訊息如下:
Launching app
...
java.io.IOException: Connection reset by peer
Error while Installing APK

則可以到
Preference -> Build, Execution, Deployment -> Debugger -> Android Debug Bridge(ADB)
把 Use libusb backend取消
就可以連線了

這個方法是來自於這個啟示
https://stackoverflow.com/questions/42781934/android-error-while-installing-apks

內文提到
如果Android Studio有不能安裝app的情形則則需取消 Instant Run的功能
但我找不到相關設定,可能是因為版本更新的關係,因此我嘗試上述的方法就成功了

沒有留言:

張貼留言