Huawei Mate 20 Pro
Dev Settings/USB Debugging = on
I get this:
adb: error: failed to get feature set: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
ERROR: "adb push" returned with value 1
Press any key to continue...
PS C:\scrcpy-win64> adb devices
List of devices attached
adb server version (40) doesn't match this client (39); killing...
* daemon started successfully
LHS7N************* unauthorized
PS C:\scrcpy-win64>
You have two problems here:
adb). If this running daemon is not reexecuted as soon as it is killed, executing adb devices one more time should not print adb server version (40) doesn't match this client (39); killing.... You should find the software which executes adb v39.unauthorized if you didn't authorize the connection on your device. A popup should open when you connect a device via adb. Some buggy devices don't always show this popup immediately. In that case, try adb kill-server; adb start-server, unplug-replug, and if nothing works, use an old adb (v39 or v36).Sorted!
Figured it out and all is good now.
Thanks alot!
I am a newbird,so I can't understand what should I do.
@oujibahei https://stackoverflow.com/a/25546300/1987178
Most helpful comment
You have two problems here:
adb). If this running daemon is not reexecuted as soon as it is killed, executingadb devicesone more time should not printadb server version (40) doesn't match this client (39); killing.... You should find the software which executesadbv39.unauthorizedif you didn't authorize the connection on your device. A popup should open when you connect a device viaadb. Some buggy devices don't always show this popup immediately. In that case, tryadb kill-server; adb start-server, unplug-replug, and if nothing works, use an oldadb(v39 or v36).