N
N
Ninja Mate2016-08-26 00:12:15
Android
Ninja Mate, 2016-08-26 00:12:15

What is the error when starting the react-native project?

trying to start a project

C:\Users\Victor\Desktop\NaitiveApp\snowflake>react-native run-android
JS server already running.
Running C:\Users\Victor\AppData\Local\Android\sdk/platform-tools/adb reverse tcp:8081 tcp:8081
adb server version (32) doesn't match this client (36); killing...
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/netw
ork address/port) is normally permitted. (10048)
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
Could not run adb reverse: Command failed: C:\Users\Victor\AppData\Local\Android\sdk/platform-tools/ adb reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && gradlew.bat installDebug...
:RNSimpleAlertDialogModule:compileLint
...
:app:installDebug
04:08:09 E/ddms: 'C:\Users\Victor\AppData\Local \Android\sdk\platform-tools\adb.exe,start-server' failed -- run manually if necessary
:
app:installDebug F
AILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app :installDebug'.
> com.android.builder.testing.api.DeviceException: Timeout getting device list.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 47.698 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/andro...

How to win?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rorc, 2017-10-18
@rorc

In this case, no devices were connected or virtually started, which is the main reason for this error.
Verification
In the English-language official documentation, it is written about this,
facebook.github.io/react-native/docs/getting-start...
But in the Russian translation, for some reason, they decided to skip that the emulator should be running. As a result, a lot of questions and this site gives out in the forefront, so the answer to google is not the best possible given the inconsistency of the issuance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question