react-native-netinfo icon indicating copy to clipboard operation
react-native-netinfo copied to clipboard

@react-native-community/netinfo release build fail

Open Rashi-jain21 opened this issue 4 years ago • 6 comments

While I am making a release build in "react-native": "0.62.2" and "@react-native-community/netinfo": "^5.9.3" Any help would be appreciated. I am getting this error.

Environment

"react-native": "0.62.2", "@react-native-community/netinfo": "^5.9.3",

Platforms

Android (react-native)

Screenshot 2020-06-25 at 3 13 02 PM

Rashi-jain21 avatar Jun 25 '20 10:06 Rashi-jain21

hi, did you solve it? having the same error , already try old versions

mecaloza avatar Jul 07 '20 17:07 mecaloza

No I am still not able to solve this issue

Rashi-jain21 avatar Jul 08 '20 18:07 Rashi-jain21

any solution?

eduardoedson avatar Aug 08 '20 16:08 eduardoedson

This is not reproducible in a properly configured project. Suspect incorrect upgrade from RN<59 to RN>=60 resulting in duplicate inclusions Suspect usage of expo or similar resulting in duplicate inclusions Try npx react-native-clean-project Try reproduce with example app here

mikehardy avatar Aug 08 '20 16:08 mikehardy

i solved by cleanning the gradlew on android and erase the cache in npm envs, follow theh next commands:

cd android graldlew clean cd .. npm cache clean --force

verify also that you dont have a installed app from the play store, install whit the same name(Beta version), doing that work for me.

mecaloza avatar Aug 08 '20 16:08 mecaloza

Try npx react-native-clean-project

This worked for me, thanks @mikehardy

eduardoedson avatar Aug 08 '20 17:08 eduardoedson