Getting exception on switching from android activity to react activity-ThrowExceptions

Exception or error:

I am new to react-native.
We are integrating the react native source code into an existing android project.
We are following the below tutorial :
https://medium.com/mindorks/react-native-integration-with-existing-app-f2757c2e672d

After adding the required react-native classes and following all steps, we are facing some crash issues when we are switching android activity to react-native activity.

Here is the crash issue

Caused by: java.lang.IllegalAccessError: Method ‘void
androidx.core.net.ConnectivityManagerCompat.()’ is inaccessible
to class ‘com.facebook.react.modules.netinfo.NetInfoModule’
(declaration of ‘com.facebook.react.modules.netinfo.NetInfoModule’
appears in /data/app/com.ttl.reactintegrationdemo-2/base.apk)

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *