Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1786

React native can't get Realm Module on the android when activate new architecture

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Description

      I enable new architecture on the android and ios with react native 0.69.1. On ios, It's working. But on android, It's can't connect with realm native module.

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Missing Realm constructor. Did you run "pod install".
      

      Can you reproduce a bug?

      Yes, always

      Reproduction Steps

      1. in file android/gradle.properties set newArchEnabled=true
      2. in file android/app/build.gradle set enableHermes: true
      3. After that, I new Realm connection
        `const realm = await Realm.open({
        path: "testdatabase",
        schema: [UserSchema],
        schemaVersion: 1
        })`
      4. yarn android
        I receive the error below.

      Version

      ^11.0.0-rc.1

      What SDK flavour are you using?

      Local Database only

      Are you using encryption?

      No, not using encryption

      Platform OS and version(s)

      Android Simulator '10.1_WXGA_Tablet_API_31(AVD) - 12'

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: