React-native: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'LinkingManager' could not be found. Verify that a module by this name is registered in the native binary

Created on 6 Jun 2020  路  4Comments  路  Source: facebook/react-native

Description

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'LinkingManager' could not be found. Verify that a module by this name is registered in the native binary

The issue is coming only in debug build of android

React Native version:

OS: macOS Mojave 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Memory: 24.67 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.6.0 - /usr/local/bin/node
Yarn: Not Found
npm: 6.5.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.5.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 21, 23, 24, 26, 27, 28, 29
Build Tools: 27.0.2, 27.0.3, 28.0.2, 28.0.3, 29.0.0, 29.0.3
System Images: android-27 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6392135
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_191 - /usr/bin/javac
Python: 2.7.10 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
react-native: Not Found

Steps To Reproduce

  1. On Android run npx react-native run-android or npx react-native run-android --variant=debug

Expected Results

.

Snack, code example, screenshot, or link to a repository:

WhatsApp Image 2020-06-06 at 8 31 59 PM (1)

Linking Issue Manager Attention Needs

Most helpful comment

Solved. It was my fault :- Somewhere at my code I ussed = instead of === for platform check. So it polluted the global variable and set the platform to 'ios' and since ios needs LinkingManager which cant be. found in android build of course.
.

All 4 comments

Potentially the same error on StackOverflow here and here. Neither has an answer.

Solved. It was my fault :- Somewhere at my code I ussed = instead of === for platform check. So it polluted the global variable and set the platform to 'ios' and since ios needs LinkingManager which cant be. found in android build of course.
.

platform

You are a life saver! Thank you for the solution!

Solved. It was my fault :- Somewhere at my code I ussed = instead of === for platform check. So it polluted the global variable and set the platform to 'ios' and since ios needs LinkingManager which cant be. found in android build of course.
.

thanks..

Was this page helpful?
0 / 5 - 0 ratings