简体   繁体   中英

React-Native Run-Android

  • React-native run-android not working It will build an app 99% then it will show error like that which is attached in screen short I also put same error here...

    **:app:installDebug Installing APK 'app-debug.apk' on 'Moto G (4) - 7.0' for app:debug Installed on 1 device.

    BUILD SUCCESSFUL

    Total time: 8.603 secs Running D:\\Android_SDK\\Sdk\\tools\\bin/platform-tools/adb -s ZY2238WJXB reverse tc p:8081 tcp:8081 Could not run adb reverse: spawnSync D:\\Android_SDK\\Sdk\\tools\\bin/platform-tools /adb ENOENT Starting the app on ZY2238WJXB (D:\\Android_SDK\\Sdk\\tools\\bin/platform-tools/adb -s ZY2238WJXB shell am start -n com.localpropertys/com.localpropertys.MainActivi ty)... events.js:167 throw er; // Unhandled 'error' event ^

    Error: spawn cmd.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19) at onErrorNT (internal/child_process.js:406:16) at process._tickCallback (internal/process/next_tick.js:63:19) Emitted 'error' event at: at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12) at onErrorNT (internal/child_process.js:406:16) at process._tickCallback (internal/process/next_tick.js:63:19)

    D:\\React_native_init\\Localpropertys>**

    1. // can anyone please help me for that // envirment set up D:\\Android_SDK\\Sdk\\tools\\bin

    **Error Image ** [CMD ERROR IMAGE][1] [1]: https://i.stack.imgur.com/XRgkF.png

You're code is throwing the error not the CMD. The reason why you can't trace it is because you didn't catch the error. A function in your code isn't working and it's throwing an error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM