Skip to content

Early JsError: Turbo Module Registry.getEnforcing (...) when trying to build android app using new architecture #220

Closed Answered by cortinico
SetRedEyes asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @SetRedEyes Thanks for providing a reproducer.

So the issue you're seeing is because your application is missing the libappmodule.so. That is the default dynamic library used by your app to instantiate React Native.

When you create a new application, we create a default libappmodule.so for you with all the necessary bits needed to load React Native.

However here you're overriding it by providing your own CMakeLists.txt file as I see you're compiling some custom C++ code. You can provide your own CMake file, but you need to make sure the libappmodules.so is still produced.

So you will have to do the following.

  1. Update your CMake file here as follows:
# For more information about using…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@SetRedEyes
Comment options

Comment options

You must be logged in to vote
1 reply
@SetRedEyes
Comment options

Answer selected by cortinico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants