React-Native, Android, Genymotion: ADB server didn't ACK

前端 未结 11 2052
梦毁少年i
梦毁少年i 2020-11-28 02:44

I am working with React-Native, Android, and Genymotion on Mac. When I run react-native run-android I get this lines at the end of the launch operation:

11条回答
  •  孤城傲影
    2020-11-28 03:37

    the adb version on your system is different from the adb version on the android sdk platform-tools . Below suggestion is work for me for Linux operating system

    1. check sys adb version run the below command

    adb version

    Android Debug Bridge version 1.0.39

    1. check sdk adb version

    cd /root/Android/Sdk/platform-tools

    ./adb version

    Android Debug Bridge version 1.0.32

    1. copy

    rm /usr/bin/adb

    [Note : the above command remove the existing adb then copy the adb from sdk/platform-tools directory ]

    sudo cp /root/Android/Sdk/platform-tools/adb /usr/bin/adb

    Then run the project using this command

    react-native run-android

提交回复
热议问题