Can't start app using command react-native run-android










0















Following this React Native Tutorial: Building Android Apps with JavaScript tutorial. I have the Android Studio open and the emulator running and it´s working I tested with another Android Studio app.



I read in the output below - Building and installing the app on the device and
also - Starting the app



But the emulator does not show the app, any ideas?
CMD OUTPUT:




L:reactPropertyFinderPropertyFinder>react-native run-android JS
server already running. Building and installing the app on the device
(cd android && gradlew.bat installDebug)...




Task :app:installDebug Installing APK 'app-debug.apk' on 'Nexus_5X_API_27_Android_8.1_ORIO(AVD) - 8.1.0' for app:debug
Installed on 1 device.




BUILD SUCCESSFUL in 8s 27 actionable tasks: 1 executed, 26 up-to-date
'adb' is not recognized as an internal or external command, operable
program or batch file. Starting the app (adb shell am start -n
com.propertyfinder/com.propertyfinder.MainActivity...



L:reactPropertyFinderPropertyFinder>











share|improve this question




























    0















    Following this React Native Tutorial: Building Android Apps with JavaScript tutorial. I have the Android Studio open and the emulator running and it´s working I tested with another Android Studio app.



    I read in the output below - Building and installing the app on the device and
    also - Starting the app



    But the emulator does not show the app, any ideas?
    CMD OUTPUT:




    L:reactPropertyFinderPropertyFinder>react-native run-android JS
    server already running. Building and installing the app on the device
    (cd android && gradlew.bat installDebug)...




    Task :app:installDebug Installing APK 'app-debug.apk' on 'Nexus_5X_API_27_Android_8.1_ORIO(AVD) - 8.1.0' for app:debug
    Installed on 1 device.




    BUILD SUCCESSFUL in 8s 27 actionable tasks: 1 executed, 26 up-to-date
    'adb' is not recognized as an internal or external command, operable
    program or batch file. Starting the app (adb shell am start -n
    com.propertyfinder/com.propertyfinder.MainActivity...



    L:reactPropertyFinderPropertyFinder>











    share|improve this question


























      0












      0








      0








      Following this React Native Tutorial: Building Android Apps with JavaScript tutorial. I have the Android Studio open and the emulator running and it´s working I tested with another Android Studio app.



      I read in the output below - Building and installing the app on the device and
      also - Starting the app



      But the emulator does not show the app, any ideas?
      CMD OUTPUT:




      L:reactPropertyFinderPropertyFinder>react-native run-android JS
      server already running. Building and installing the app on the device
      (cd android && gradlew.bat installDebug)...




      Task :app:installDebug Installing APK 'app-debug.apk' on 'Nexus_5X_API_27_Android_8.1_ORIO(AVD) - 8.1.0' for app:debug
      Installed on 1 device.




      BUILD SUCCESSFUL in 8s 27 actionable tasks: 1 executed, 26 up-to-date
      'adb' is not recognized as an internal or external command, operable
      program or batch file. Starting the app (adb shell am start -n
      com.propertyfinder/com.propertyfinder.MainActivity...



      L:reactPropertyFinderPropertyFinder>











      share|improve this question
















      Following this React Native Tutorial: Building Android Apps with JavaScript tutorial. I have the Android Studio open and the emulator running and it´s working I tested with another Android Studio app.



      I read in the output below - Building and installing the app on the device and
      also - Starting the app



      But the emulator does not show the app, any ideas?
      CMD OUTPUT:




      L:reactPropertyFinderPropertyFinder>react-native run-android JS
      server already running. Building and installing the app on the device
      (cd android && gradlew.bat installDebug)...




      Task :app:installDebug Installing APK 'app-debug.apk' on 'Nexus_5X_API_27_Android_8.1_ORIO(AVD) - 8.1.0' for app:debug
      Installed on 1 device.




      BUILD SUCCESSFUL in 8s 27 actionable tasks: 1 executed, 26 up-to-date
      'adb' is not recognized as an internal or external command, operable
      program or batch file. Starting the app (adb shell am start -n
      com.propertyfinder/com.propertyfinder.MainActivity...



      L:reactPropertyFinderPropertyFinder>








      reactjs react-native






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 '18 at 9:59









      Cœur

      17.5k9104145




      17.5k9104145










      asked Nov 12 '18 at 9:56









      Erik HellbergErik Hellberg

      6661921




      6661921






















          3 Answers
          3






          active

          oldest

          votes


















          1














          You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall



          Then follow this



          1. Close all the npm Terminal

          2. Open a new Command prompt and run react-native start --reset-cache

          3. Open a new Command prompt and run react-native run-android





          share|improve this answer






























            1














            The error says you dont have adb installed on your device.



            You need to install the adb commands, and make sure they're globally available in your $PATH. Here are a few step by step tutorials for it:




            https://www.xda-developers.com/install-adb-windows-macos-linux/



            https://www.xda-developers.com/adb-fastboot-any-directory-windows-linux/




            Once you have adb installed, Open your terminal and type



            adb version


            to make sure its installed correctly. If you run the command react-native run-android again, after removing the app from the device, it should link it to the packager and would work fine.



            The problem is Android studio has all the tools, but it only creates an environment inside the Android Studio, and none of the tools are available outside the Android Studio env.






            share|improve this answer






























              0














              Answering my self, I run this yesterday so the app was already installed on the emulator.



              The cmd command :



              react-native run-android


              did not start the app since it´s installed for some reason, I hade to manually start the app on the emulator and then I could continue the tutorial






              share|improve this answer


















              • 1





                If you install ADB, the app will launch itself from the command line

                – Umair Ahmed
                Nov 12 '18 at 10:34










              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53259681%2fcant-start-app-using-command-react-native-run-android%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall



              Then follow this



              1. Close all the npm Terminal

              2. Open a new Command prompt and run react-native start --reset-cache

              3. Open a new Command prompt and run react-native run-android





              share|improve this answer



























                1














                You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall



                Then follow this



                1. Close all the npm Terminal

                2. Open a new Command prompt and run react-native start --reset-cache

                3. Open a new Command prompt and run react-native run-android





                share|improve this answer

























                  1












                  1








                  1







                  You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall



                  Then follow this



                  1. Close all the npm Terminal

                  2. Open a new Command prompt and run react-native start --reset-cache

                  3. Open a new Command prompt and run react-native run-android





                  share|improve this answer













                  You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall



                  Then follow this



                  1. Close all the npm Terminal

                  2. Open a new Command prompt and run react-native start --reset-cache

                  3. Open a new Command prompt and run react-native run-android






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 12 '18 at 10:48









                  GowthamanGowthaman

                  231315




                  231315























                      1














                      The error says you dont have adb installed on your device.



                      You need to install the adb commands, and make sure they're globally available in your $PATH. Here are a few step by step tutorials for it:




                      https://www.xda-developers.com/install-adb-windows-macos-linux/



                      https://www.xda-developers.com/adb-fastboot-any-directory-windows-linux/




                      Once you have adb installed, Open your terminal and type



                      adb version


                      to make sure its installed correctly. If you run the command react-native run-android again, after removing the app from the device, it should link it to the packager and would work fine.



                      The problem is Android studio has all the tools, but it only creates an environment inside the Android Studio, and none of the tools are available outside the Android Studio env.






                      share|improve this answer



























                        1














                        The error says you dont have adb installed on your device.



                        You need to install the adb commands, and make sure they're globally available in your $PATH. Here are a few step by step tutorials for it:




                        https://www.xda-developers.com/install-adb-windows-macos-linux/



                        https://www.xda-developers.com/adb-fastboot-any-directory-windows-linux/




                        Once you have adb installed, Open your terminal and type



                        adb version


                        to make sure its installed correctly. If you run the command react-native run-android again, after removing the app from the device, it should link it to the packager and would work fine.



                        The problem is Android studio has all the tools, but it only creates an environment inside the Android Studio, and none of the tools are available outside the Android Studio env.






                        share|improve this answer

























                          1












                          1








                          1







                          The error says you dont have adb installed on your device.



                          You need to install the adb commands, and make sure they're globally available in your $PATH. Here are a few step by step tutorials for it:




                          https://www.xda-developers.com/install-adb-windows-macos-linux/



                          https://www.xda-developers.com/adb-fastboot-any-directory-windows-linux/




                          Once you have adb installed, Open your terminal and type



                          adb version


                          to make sure its installed correctly. If you run the command react-native run-android again, after removing the app from the device, it should link it to the packager and would work fine.



                          The problem is Android studio has all the tools, but it only creates an environment inside the Android Studio, and none of the tools are available outside the Android Studio env.






                          share|improve this answer













                          The error says you dont have adb installed on your device.



                          You need to install the adb commands, and make sure they're globally available in your $PATH. Here are a few step by step tutorials for it:




                          https://www.xda-developers.com/install-adb-windows-macos-linux/



                          https://www.xda-developers.com/adb-fastboot-any-directory-windows-linux/




                          Once you have adb installed, Open your terminal and type



                          adb version


                          to make sure its installed correctly. If you run the command react-native run-android again, after removing the app from the device, it should link it to the packager and would work fine.



                          The problem is Android studio has all the tools, but it only creates an environment inside the Android Studio, and none of the tools are available outside the Android Studio env.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 12 '18 at 10:33









                          Umair AhmedUmair Ahmed

                          25118




                          25118





















                              0














                              Answering my self, I run this yesterday so the app was already installed on the emulator.



                              The cmd command :



                              react-native run-android


                              did not start the app since it´s installed for some reason, I hade to manually start the app on the emulator and then I could continue the tutorial






                              share|improve this answer


















                              • 1





                                If you install ADB, the app will launch itself from the command line

                                – Umair Ahmed
                                Nov 12 '18 at 10:34















                              0














                              Answering my self, I run this yesterday so the app was already installed on the emulator.



                              The cmd command :



                              react-native run-android


                              did not start the app since it´s installed for some reason, I hade to manually start the app on the emulator and then I could continue the tutorial






                              share|improve this answer


















                              • 1





                                If you install ADB, the app will launch itself from the command line

                                – Umair Ahmed
                                Nov 12 '18 at 10:34













                              0












                              0








                              0







                              Answering my self, I run this yesterday so the app was already installed on the emulator.



                              The cmd command :



                              react-native run-android


                              did not start the app since it´s installed for some reason, I hade to manually start the app on the emulator and then I could continue the tutorial






                              share|improve this answer













                              Answering my self, I run this yesterday so the app was already installed on the emulator.



                              The cmd command :



                              react-native run-android


                              did not start the app since it´s installed for some reason, I hade to manually start the app on the emulator and then I could continue the tutorial







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Nov 12 '18 at 10:30









                              Erik HellbergErik Hellberg

                              6661921




                              6661921







                              • 1





                                If you install ADB, the app will launch itself from the command line

                                – Umair Ahmed
                                Nov 12 '18 at 10:34












                              • 1





                                If you install ADB, the app will launch itself from the command line

                                – Umair Ahmed
                                Nov 12 '18 at 10:34







                              1




                              1





                              If you install ADB, the app will launch itself from the command line

                              – Umair Ahmed
                              Nov 12 '18 at 10:34





                              If you install ADB, the app will launch itself from the command line

                              – Umair Ahmed
                              Nov 12 '18 at 10:34

















                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53259681%2fcant-start-app-using-command-react-native-run-android%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Use pre created SQLite database for Android project in kotlin

                              Darth Vader #20

                              Ondo