com.android.ddmlib.InstallException: Failed to establish session react-native

前端 未结 16 1323
情深已故
情深已故 2020-12-12 19:05

I am trying to run react-native android app in my nexus5 emulator

adb devices
List of devices attached
emulator-5554   device

started pack

16条回答
  •  無奈伤痛
    2020-12-12 19:20

    step :1 run(kill all adb)

     adb kill-server
    

    step 2:list all connected devices(get your emulator id)

    adb devices 
    

    step 3:(replace ID to listed id from step2)

    react-native run-android --deviceId ID
    

    Note: make sure your previous app uninstalled in your emulator or physical device

提交回复
热议问题