Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant Violation #1350

Open
2 tasks done
ledainghia opened this issue Nov 5, 2024 · 1 comment
Open
2 tasks done

Invariant Violation #1350

ledainghia opened this issue Nov 5, 2024 · 1 comment

Comments

@ledainghia
Copy link

I have searched open and closed issues for this issue.

  • I have searched open and closed issues.

This is not a bug report for DEVELOPER_ERROR

  • I have read the troubleshooting guide

Minimal reproducible example

https://github.com/ledainghia/MMA-PROJECT

What platform(s) does this occur on?

Android

Summary

When running the app on an Android emulator, the RNGoogleSignin module isn't detected, leading to a TurboModule registry error. This suggests that the module might not be correctly linked or that the project setup is incomplete.

Steps to Reproduce the Issue
Run the app on an Android emulator.
Attempt to initiate Google Sign-In functionality.
Observe the Invariant Violation error indicating that RNGoogleSignin could not be found.
Expected Behavior
Google Sign-In should work as expected without any module errors.

Actual Behavior
The app fails to load Google Sign-In functionality and throws a module not found error.

Affected Platforms
Android (emulator)

Full log of this error
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNGoogleSignin' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","LogBox","SourceCode","Appearance","AppState","UIManager","AccessibilityInfo","DeviceInfo","Timing","BlobModule","WebSocketModule","DevSettings","DevToolsSettingsManager","Networking","DevLoadingView","HeadlessJsTaskSupport","ImageLoader","SoundManager","IntentAndroid","DeviceEventManager","NativeAnimatedModule","I18nManager","StatusBarManager","StatusBarManager","RNCAsyncStorage"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","AccessibilityManager","RedBox","BugReporting","LinkingManager","RNCSafeAreaContext","NativeReactNativeFeatureFlagsCxx","RNSModule","FrameRateLogger","KeyboardObserver","PlatformLocalStorage","RNC_AsyncSQLiteDBStorage","RNGoogleSignin"]}, js engine: hermes [Component Stack]

Your computer environment

OS: Windows 11 10.0.26100
  CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
  Memory: 16.02 GB / 31.78 GB
Binaries:
  Node:
    version: 20.18.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 10.8.2
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowAllTrustedApps: Disabled
    AllowDevelopmentWithoutDevLicense: Enabled
IDEs:
  Android Studio: AI-242.23339.11.2421.12483815
  Visual Studio: Not Found
Languages:
  Java: Not Found
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.5
    wanted: ^0.74.5
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
@theboyofdream
Copy link

can u share full error log? coz i had same error i deleted caches dir in win11 C:\Users\Abhishek\.gradle\caches and then re-ran cmd npx expo run:android that worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants