React Native Build Failing











up vote
0
down vote

favorite












Hi I am new to react native and was trying to setup the sample project, but while trying to build the app i am getting following error




Task :app:installDebug FAILED



Skipping device 'd18a96d67d94 - 7.1.2' for 'app:debug': Could not find build
of variant which supports density -1 and an ABI in
FAILURE: Build failed with an exception.



What went wrong:
Execution failed for task ':app:installDebug'.



Failed to install on any devices.




Any idea why this is happening?










share|improve this question






















  • In which device you're installing the debug app ?
    – Siraj
    Nov 19 at 18:22










  • Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
    – Alessandro Macanha
    Nov 19 at 18:40












  • Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
    – Vipin
    Nov 20 at 1:42

















up vote
0
down vote

favorite












Hi I am new to react native and was trying to setup the sample project, but while trying to build the app i am getting following error




Task :app:installDebug FAILED



Skipping device 'd18a96d67d94 - 7.1.2' for 'app:debug': Could not find build
of variant which supports density -1 and an ABI in
FAILURE: Build failed with an exception.



What went wrong:
Execution failed for task ':app:installDebug'.



Failed to install on any devices.




Any idea why this is happening?










share|improve this question






















  • In which device you're installing the debug app ?
    – Siraj
    Nov 19 at 18:22










  • Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
    – Alessandro Macanha
    Nov 19 at 18:40












  • Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
    – Vipin
    Nov 20 at 1:42















up vote
0
down vote

favorite









up vote
0
down vote

favorite











Hi I am new to react native and was trying to setup the sample project, but while trying to build the app i am getting following error




Task :app:installDebug FAILED



Skipping device 'd18a96d67d94 - 7.1.2' for 'app:debug': Could not find build
of variant which supports density -1 and an ABI in
FAILURE: Build failed with an exception.



What went wrong:
Execution failed for task ':app:installDebug'.



Failed to install on any devices.




Any idea why this is happening?










share|improve this question













Hi I am new to react native and was trying to setup the sample project, but while trying to build the app i am getting following error




Task :app:installDebug FAILED



Skipping device 'd18a96d67d94 - 7.1.2' for 'app:debug': Could not find build
of variant which supports density -1 and an ABI in
FAILURE: Build failed with an exception.



What went wrong:
Execution failed for task ':app:installDebug'.



Failed to install on any devices.




Any idea why this is happening?







javascript react-native






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 at 18:08









Vipin

7419




7419












  • In which device you're installing the debug app ?
    – Siraj
    Nov 19 at 18:22










  • Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
    – Alessandro Macanha
    Nov 19 at 18:40












  • Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
    – Vipin
    Nov 20 at 1:42




















  • In which device you're installing the debug app ?
    – Siraj
    Nov 19 at 18:22










  • Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
    – Alessandro Macanha
    Nov 19 at 18:40












  • Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
    – Vipin
    Nov 20 at 1:42


















In which device you're installing the debug app ?
– Siraj
Nov 19 at 18:22




In which device you're installing the debug app ?
– Siraj
Nov 19 at 18:22












Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
– Alessandro Macanha
Nov 19 at 18:40






Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
– Alessandro Macanha
Nov 19 at 18:40














Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
– Vipin
Nov 20 at 1:42






Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
– Vipin
Nov 20 at 1:42














2 Answers
2






active

oldest

votes

















up vote
0
down vote













If you have error something like this :



Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
Could not install the app on the device, read the error above for details.


===



please cek : app-debug.apk location



mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk



and you must move : app-debug.apk



C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk



up for one level folder : "debug"

outputsapkdebug
--
outputsapk





share|improve this answer




























    up vote
    0
    down vote














    1. enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.


    2. Go back to Settings, Additional settings, Developer options and enable USB Debugging.


    3. Connect your phone to your PC/Mac and on the phone authorize your computer


    4. go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted


    5. Try it now :)



    =====




    1. cek list devices : adb devices


    2. kill adb device : adb kill-server deviceId 329cb478 // is my id devices


    3. run again : adb devices


    4. npm start


    5. Open another console / cmd


    6. run this inside folder project : react-native run-android --deviceId 329cb478







    share|improve this answer























      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',
      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%2f53380371%2freact-native-build-failing%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      If you have error something like this :



      Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
      Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
      adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
      Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
      Could not install the app on the device, read the error above for details.


      ===



      please cek : app-debug.apk location



      mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk



      and you must move : app-debug.apk



      C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk



      up for one level folder : "debug"

      outputsapkdebug
      --
      outputsapk





      share|improve this answer

























        up vote
        0
        down vote













        If you have error something like this :



        Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
        Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
        adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
        Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
        Could not install the app on the device, read the error above for details.


        ===



        please cek : app-debug.apk location



        mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk



        and you must move : app-debug.apk



        C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk



        up for one level folder : "debug"

        outputsapkdebug
        --
        outputsapk





        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          If you have error something like this :



          Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
          Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
          adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
          Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
          Could not install the app on the device, read the error above for details.


          ===



          please cek : app-debug.apk location



          mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk



          and you must move : app-debug.apk



          C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk



          up for one level folder : "debug"

          outputsapkdebug
          --
          outputsapk





          share|improve this answer












          If you have error something like this :



          Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
          Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
          adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
          Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
          Could not install the app on the device, read the error above for details.


          ===



          please cek : app-debug.apk location



          mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk



          and you must move : app-debug.apk



          C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk



          up for one level folder : "debug"

          outputsapkdebug
          --
          outputsapk






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 at 15:46









          Hadi

          11




          11
























              up vote
              0
              down vote














              1. enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.


              2. Go back to Settings, Additional settings, Developer options and enable USB Debugging.


              3. Connect your phone to your PC/Mac and on the phone authorize your computer


              4. go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted


              5. Try it now :)



              =====




              1. cek list devices : adb devices


              2. kill adb device : adb kill-server deviceId 329cb478 // is my id devices


              3. run again : adb devices


              4. npm start


              5. Open another console / cmd


              6. run this inside folder project : react-native run-android --deviceId 329cb478







              share|improve this answer



























                up vote
                0
                down vote














                1. enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.


                2. Go back to Settings, Additional settings, Developer options and enable USB Debugging.


                3. Connect your phone to your PC/Mac and on the phone authorize your computer


                4. go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted


                5. Try it now :)



                =====




                1. cek list devices : adb devices


                2. kill adb device : adb kill-server deviceId 329cb478 // is my id devices


                3. run again : adb devices


                4. npm start


                5. Open another console / cmd


                6. run this inside folder project : react-native run-android --deviceId 329cb478







                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote










                  1. enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.


                  2. Go back to Settings, Additional settings, Developer options and enable USB Debugging.


                  3. Connect your phone to your PC/Mac and on the phone authorize your computer


                  4. go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted


                  5. Try it now :)



                  =====




                  1. cek list devices : adb devices


                  2. kill adb device : adb kill-server deviceId 329cb478 // is my id devices


                  3. run again : adb devices


                  4. npm start


                  5. Open another console / cmd


                  6. run this inside folder project : react-native run-android --deviceId 329cb478







                  share|improve this answer















                  1. enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.


                  2. Go back to Settings, Additional settings, Developer options and enable USB Debugging.


                  3. Connect your phone to your PC/Mac and on the phone authorize your computer


                  4. go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted


                  5. Try it now :)



                  =====




                  1. cek list devices : adb devices


                  2. kill adb device : adb kill-server deviceId 329cb478 // is my id devices


                  3. run again : adb devices


                  4. npm start


                  5. Open another console / cmd


                  6. run this inside folder project : react-native run-android --deviceId 329cb478








                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 20 at 23:54

























                  answered Nov 20 at 15:40









                  Hadi

                  11




                  11






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f53380371%2freact-native-build-failing%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

                      404 Error Contact Form 7 ajax form submitting

                      How to know if a Active Directory user can login interactively

                      TypeError: fit_transform() missing 1 required positional argument: 'X'