Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native auto linking issue in Android (RN 0.61.5)

Tags:

react-native

I was using react-native 0.59.1 and recently migrated to react-native 0.61.5 after that when I run react-native run-android I get the following error.

enter image description here

Even with the error the project builds and run properly.

I have heard about auto-linking and as suggested in the error I have unlinked the dependency using the command shown in the error and also run react-native link. After that, the project builds and works fine in iOS but throwing the following error in Android

enter image description here

like image 573
Ajay Sivan Avatar asked Dec 05 '25 03:12

Ajay Sivan


1 Answers

First, you need to try to run react-native unlink netinfo. Once you've unlinked the library you should use cocoapods, not react-native link .... This is because in React Native v0.61 you no longer manually link 3rd party libraries. Try running:

cd ios
pod install
like image 118
Eduardo Carloto Avatar answered Dec 07 '25 19:12

Eduardo Carloto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!