'How to resolve adb: connect error f or write : closed

I am getting the list of adb devices. But when i try to install the apk i am getting error connect error for write: closed

Image:

https://i.stack.imgur.com/TBVb8.png



Solution 1:[1]

you should just use "apply update from adb" in recovery mode for installing new OS versions or something. If you just want to install an .apk, start the device normally, activate the developer options and after that activate usb-debugging. Then try again adb devices and after that you could install the .apk, while the device is started "normally" (no recovery mode). Hope this helps

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 test