Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does React Native app crash when clicking on debug in Android emulator?

React Native app shows error when clicked on debug in Android emulator

Attempt to invoke interface method java.lang.String com.facebook.react.bridge.Cat alystInstance.getSourceURL('on a null object reference

below are error screenshots

Emulator screenshot:
1

Debugger screenshot:
2

When clicked on reload app crashes and lost connection to debugger.

Tried uninstalling and reinstalling apk in emulator and cd android ./gradlew clean.

Still same error.

like image 758
Sudharsan Palanisamy Avatar asked Oct 23 '25 02:10

Sudharsan Palanisamy


1 Answers

I have faced same issue and it was due to the 'react-native-reanimated' package (It's mentioned in their documentation that remote debugging is no longer possible for react-native-reanimated : React Native Reanimated Known problems and limitations) and the solution is to use flipper to debug : Debugging React Native apps with Flipper

like image 120
Thanhal Avatar answered Oct 25 '25 16:10

Thanhal



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!