我试图在我的Ubuntu PC上运行Genymotion上的react-native应用程序(使用create-react-native-app创建)。
当我运行npm run android
时,我收到此错误,
could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
所以我搜索并关注了这个stackoverflow问题的first回答。 (当我第一次运行adb kill-server
时,它显示adb is not found
所以我使用sudo apt install adb
安装了它
但是当我运行adb start-server
时(根据答案)我现在收到此错误,
adb server version (39) doesn't match this client (36); killing...
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
为什么?我做错了什么?