Skip to content

[Android] Custom turbo module is working on dev but it is not included in AAR (Invariant Violation: TurboModuleRegistry.getEnforcing) #149

@NetPumi2

Description

@NetPumi2

I am playing with turbo modules in aar. And the app is working fine. But when I generated AAR, it is not working because of this error. The module is super simple, just returning some text, and it's working fine. I have generated Codepen, and all looks fine

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

I created a repo. You can reproduce it:
NetPumi2/rock-rn-sdk-like#1

This is what an AAR look like:

Image

Spec is there, but I think implementation is missing...
I follow RN doc to implement it, and Brownfield is also the default repo
Did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions