This is the error message i keep getting when i try to run app on emulator
RuntimeError: abort(Error: could not connect to TCP port 5554: cannot connect to 127.0.0.1:5554: No connection could be made because the target machine actively refused it. (10061)). Build with -s ASSERTIONS=1 for more info.
What are the best ways to tackle this?
I have tried running my android emulator to test what am building but instead it is showing me those error message
Related
I'm working on a react native app with expo and i'm trying to use bluestacks as an android emulator, i have the bluestacks open and running and on my command line (git bash) i use
expo start --android
but i get the following error:
could not connect to TCP port 5554: cannot connect to 127.0.0.1:5554: No connection
could be made because the target machine actively refused it. (10061)
[14:28:35] Error: adb exited with non-zero code: 1
what could be causing this and how can i fix it?
"Couldn't start project on Android: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048) could not read ok from ADB Server * failed to start daemon * error: cannot connect to daemo"
I'm getting this error when i try to run my React Native code on gennymotion emulator. As i'm new to react native so i don't know much how to solve this problem.
I write my code on VScode and run on external device and it works perfectly but as i need to debug by code so i have to run it on simulator(I guess).I've downloaded android studio but I dont know what to do with it.It would be great if I get a detailed answer.
I'm new to the React Native application development. When I after creating project and configured my device, It gives error like below and stop responding.
BUILD SUCCESSFUL in 27s
26 actionable tasks: 1 executed, 25 up-to-date
'C:\Users\Amila' is not recognized as an internal or external command,
operable program or batch file.
info Starting the app (C:\Users\Amila Eranda\AppData\Local\Android
\Sdk/platform-tools/adb shell am start -n
com.awesomeproject/com.awesomeproject.MainActivity...
Starting: Intent { cmp=com.awesomeproject/.MainActivity }
It shows build is success but there is an error on the Device saying
Unable to load script. Make sure you're either running a metro server...
running the adb devices command shows there is a device connected to my PC. But it fails running it in the Device.
That error on your device means that your device cannot connect to the metro server running on your computer to get the js bundle. The app on your device is a temporary app used by react native to quickly download the javascript code from your computer and convert it to code your device can understand each and every time you make changes to your code. Your device must be connected to your computer either on the same wifi network (with metro bundler running in a terminal window on your computer) or through a usb cable (with usb debugging enabled on your device and adb reverse set on a command prompt on your computer).
Read this from the android documentation to find out how to enable developer options on your android device: https://developer.android.com/studio/debug/dev-options
If your android device lets you, you can create a hotspot and have your computer connect to it if you do not have wifi available and usb debugging does not work for you.
Read this from the react native documentation: https://facebook.github.io/react-native/docs/running-on-device#connecting-to-the-development-server-1
I am using wifi adb to load app into mobile device from Android Studio. I run this script to connect to my mobile device.
#!/bin/sh
adb tcpip 5555
adb connect 192.168.1.237:5555
Previously I did not have any problem but recently it takes a few minutes to install apk.
Too much logs are generated and I have no idea which part is the cause. The error appeared most frequently is
E/SecUISvc: Error initializing local socket: -1
I want to receive the AT command from android emulator and send the reply back from TCP client program which is written in C.
I am running Android ICS emulator on ubuntu-10.4 system as server by giving command "emulator -shell-serial tcp::4444,server" and in another terminal I am running TCP client written in C trying to connect to the same port.
I am able to see the emulator GUI coming up but I am not receiving any AT command in client.
I got the answer, in the emulator command i need to pass -radio instead -shell-serial. now I am able to receive all the AT commands in my client program