Rapsssito / react-native-tcp-socket

React Native TCP socket API for Android, iOS & macOS with SSL/TLS support.
MIT License
315 stars 80 forks source link

TcpScokets tried to override TcpSockets #86

Closed MFedour closed 3 years ago

MFedour commented 3 years ago

Hi ! I'm facing an issue at the installation I've followed the installation tutorial but I've the following error on react-native run-android

Screenshot_20201113-102313_control_ts4

There is no duplicate tcpSocket in MainApplication.java getPackages()

React native version are:

react-native-cli: 2.0.1 react-native: 0.63.3

npm version:

6.14.8

Any idea where the problem might come from ? Thanks you for your help

Rapsssito commented 3 years ago

@MFedour, I had never seen this error. Could you provide your package.json? You might have two libraries using the name TcpSockets.

github-actions[bot] commented 3 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.

BoyZhouY commented 3 years ago

@MFedour I have seen this error because I used "react-native-tcp" before, the solution:

  1. Uninstall it npm uninstall react-native-tcp --save
  2. Execute gradlew clean in your android directory
  3. Restart the project