I recently started learning to build Android Apps using React Native. During the course, I have to set up the Expo, an opensource platform for building native applications for Android, iOS and Web using JavaScript and React. The platform will handle the majority of work in building, deploying, and iterate native apps from the same JavaScript codebase. While building the app using the command expo build:android
, I encountered ECONNRESET error.
E:\App Development>expo build:android read ECONNRESET Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:204:27)
Environment:
Expo Cli 3.21.5
System: Windows 10
Binaries: Node 12.18.0
IDEs: Visual Studio Code
Emulator: Android Emulator – Nexus Q (v10)
Well, In this tutorial I’ll explain how to solve the error – Read ECONNRESET
Fix Read ECONNRESET error
The ECONNRESET error means the TCP conversation has abruptly closed the connection!
Firstly verify that you’ve followed the instructions from the Expo on Building Standalone Apps.
Option 1: You may try deleting .expo
folder and then build the app.
Option 2: If option 1 didn’t work, then you can try disabling the Windows Firewall. In my case, this option fixed the issue as the Firewall was blocking the connection to the expo build server.