Can't start app using command react-native run-android
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
add a comment |
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
add a comment |
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
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
reactjs react-native
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
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall
Then follow this
- Close all the npm Terminal
- Open a new Command prompt and run react-native start --reset-cache
- Open a new Command prompt and run react-native run-android
add a comment |
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.
add a comment |
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
1
If you install ADB, the app will launch itself from the command line
– Umair Ahmed
Nov 12 '18 at 10:34
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall
Then follow this
- Close all the npm Terminal
- Open a new Command prompt and run react-native start --reset-cache
- Open a new Command prompt and run react-native run-android
add a comment |
You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall
Then follow this
- Close all the npm Terminal
- Open a new Command prompt and run react-native start --reset-cache
- Open a new Command prompt and run react-native run-android
add a comment |
You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall
Then follow this
- Close all the npm Terminal
- Open a new Command prompt and run react-native start --reset-cache
- Open a new Command prompt and run react-native run-android
You can uninstall the APP from your emulator from settings -> Apps -> Select your app and uninstall
Then follow this
- Close all the npm Terminal
- Open a new Command prompt and run react-native start --reset-cache
- Open a new Command prompt and run react-native run-android
answered Nov 12 '18 at 10:48
GowthamanGowthaman
231315
231315
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 12 '18 at 10:33
Umair AhmedUmair Ahmed
25118
25118
add a comment |
add a comment |
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
1
If you install ADB, the app will launch itself from the command line
– Umair Ahmed
Nov 12 '18 at 10:34
add a comment |
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
1
If you install ADB, the app will launch itself from the command line
– Umair Ahmed
Nov 12 '18 at 10:34
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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