我试图在我的 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问题的第一个答案。(当我第一次运行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
这是为什么 ?我做错了什么?