question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Socket connection timed out.. (Crashlytics issue with nativescript-plugin-firebase)

See original GitHub issue

@alereisan commented on Fri Nov 09 2018

Environment tns info: output image

Describe the bug image I cannot run my app.

Error detected during LiveSync on emulator-5554 for /Users/iamacpro2018/Documents/nativescript/tns-yoojis-kies. Error: Socket connection timed out.

I tried to start it from the CLI, from Sidekick, on an Android Emulator, on 2 different Android Devices. I deleted the project folder and re-cloned the github repository.

I followed all the inputs from related errors on Github, Slack and Stackoverflow.

I wrote a cleanup script (which worked for one day):

sudo chmod -R 777 .
npm cache clean --force
echo "Starting Nativescript cleanup..."
echo "removing node_modules folder..."
rm -rf node_modules/ 
echo "removing platforms folder..."
rm -rf platforms/ 
echo "removing package-lock.json file..."
rm -rf package-lock.json 
echo "removing hooks folder..."
rm -rf hooks/
npm i
echo "Nativescript cleanup successfull!"
echo "Configuring TypeScript for NativeScript..."
./node_modules/.bin/ns-upgrade-tsconfig
echo "Configuring Webpack for NativeScript..."
./node_modules/.bin/update-ns-webpack --deps --configs
echo "Configuring Angular dependencies for NativeScript..."
./node_modules/.bin/update-app-ng-deps
echo "Running npm install..."
npm install
echo "npm install done!"
echo "Starting Android Build..."
tns build android
echo "Android build successfull!"

The “Socket connection timed out…” error persists.

(If I start a new project in Sidekick, the new project runs)

Sample project as this is a private repository, please tell me whom i should add as a collaborator

tns doctor output: image

package.json:

{
  "nativescript": {
    "id": "ch.inaffect.yoojis.kies",
    "tns-ios": {
      "version": "5.0.0"
    },
    "tns-android": {
      "version": "5.0.0"
    }
  },
  "description": "Android App for Yooji's KIES consoles",
  "license": "-",
  "repository": "https://github.com/inaffect-ag/tns-yoojis-kies",
  "scripts": {
    "lint": "tslint \"app/**/*.ts\""
  },
  "dependencies": {
    "@angular/animations": "~6.1.0",
    "@angular/common": "~6.1.0",
    "@angular/compiler": "~6.1.0",
    "@angular/core": "~6.1.0",
    "@angular/forms": "~6.1.0",
    "@angular/http": "~6.1.0",
    "@angular/platform-browser": "~6.1.0",
    "@angular/platform-browser-dynamic": "~6.1.0",
    "@angular/router": "~6.1.0",
    "@ngx-translate/core": "^10.0.2",
    "@ngx-translate/http-loader": "^3.0.1",
    "moment": "^2.22.2",
    "nativescript-angular": "^6.2.0",
    "nativescript-permissions": "^1.2.3",
    "nativescript-plugin-firebase": "^7.3.0",
    "nativescript-ripple": "2.1.0",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-listview": "3.7.2",
    "nativescript-ui-sidedrawer": "~4.2.0",
    "reflect-metadata": "~0.1.10",
    "rxjs": "^6.0.0",
    "tns-core-modules": "^5.0.2",
    "tns-platform-declarations": "^4.2.1",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~6.1.0",
    "@ngtools/webpack": "~6.2.0",
    "codelyzer": "~4.3.0",
    "nativescript-dev-sass": "~1.6.0",
    "nativescript-dev-typescript": "^0.7.4",
    "nativescript-dev-webpack": "^0.17.0",
    "tslint": "~5.11.0",
    "typescript": "~2.7.2"
  },
  "readme": "NativeScript Application"
}

Here is the log output while running: tns run android --log trace https://gist.github.com/alereisan/cdd27d6ea6df48f6879957251d97f2ab


@NickIliev commented on Wed Nov 14 2018

@alereisan the issue might be caused by an error in the code that prevents the compiling. Or for a number of other reasons. Closing as duplicate to https://github.com/NativeScript/nativescript-cli/issues/4029


@djokone commented on Tue Nov 13 2018

@alereisan, I’ve had the same problem, and it was the Firebase crashlytics plugin who’s not compatible with the Android Runtime 5.0. Try to take it off.

in your firebase.nativescript.json : … “crashlytics”: false, …

rm -rf nodes_modules npm i


@alereisan commented on Tue Nov 13 2018

@djokone Yes thanks, I figured out yesterday that it was related with firebase and I completely disabled firebase for now.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NickIlievcommented, Nov 15, 2018

+1 Reported via t.1360938 (UMediaGroup)

Description of the issue in detailes : https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/1023

0reactions
rosen-vladimirovcommented, Apr 24, 2019

Hey @Kraften , This issue is quite old and I’m going to lock it from further comments as the information in it is not enough to get the desired output. Can you please open a new issue and provide all the required information in the issue template. This way we’ll be able to provide better help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nativescript: Socket connection timed out
i created a project with Hello World template and getting the same error. No nativescript-plugin-firebase plugin. – armache. Dec 9, 2019 at 0:19....
Read more >
Add Basic Crash Reporting to Your NativeScript App
Today we are going to learn how to leverage Crashlytics (part of Firebase) to log and report on errors in our NativeScript apps...
Read more >
Crashlytics troubleshooting and FAQ - Firebase
This page provides troubleshooting help and answers to frequently-asked questions about using Crashlytics. If you can't find what you're looking for or need ......
Read more >
Crashlytics | React Native Firebase
Installation. This module requires that the @react-native-firebase/app module is already setup and installed. To install the "app" ...
Read more >
How to set up Crashlytics alerting to monitor app stability
New issue alerts let you know the first time a new crash has occurred. We filter out the noise of repeated crashes, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found