Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30014

Integrating react native code into existing android project

$
0
0

Integrating react native code into the existing android project facing the following error.

Caused by: java.lang.IllegalAccessError: Method 'void androidx.core.net.ConnectivityManagerCompat.()

We are trying to add the react native project into an existing android app. With the following reference link:

https://medium.com/mindorks/react-native-integration-with-existing-app-f2757c2e672d

. While switching from Android Main activity to Reactnative activity, we get the following exception

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`

. Please suggest.


Viewing all articles
Browse latest Browse all 30014

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>