Skip to content

When mixing JS and Java: java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper #1896

@githubdoramon

Description

@githubdoramon

Goals

Implement Realm js and Realm java together on an App with React Native integrated to Native Android

Expected Results

Run the app without crashing

Actual Results

After building with proguard enabled, the app crashes on open. Is complain that the class io.realm.react.utils.SSLHelper is not found by the React Native environment.

I lost the stack trace, but for future reference, I fixed this by adding this line to proguard:

  • keep class io.realm.react.**

Activity

kneth

kneth commented on Jun 27, 2018

@kneth
Contributor

@githubdoramon To be honest, we haven't tested joining Realm JS and Realm Java in a single app. It sounds like you have figured out how to do it, and your tip is worth adding to our documentation.

self-assigned this
on Jun 27, 2018
githubdoramon

githubdoramon commented on Jun 27, 2018

@githubdoramon
Author

It took quite some time, but is working... another important tip is to make sure the js and java versions are reading the update data, it is necessary to always perform an empty write (or executeTransaction) before reading the data (when for example you write on js and then try to directly read on java)

youngjuning

youngjuning commented on Aug 4, 2018

@youngjuning

+1

XiaoJianPeng

XiaoJianPeng commented on Aug 4, 2018

@XiaoJianPeng

+1

kneth

kneth commented on Aug 6, 2018

@kneth
Contributor

@githubdoramon Thanks for the tips!

removed their assignment
on Sep 6, 2018
changed the title [-]java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper[/-] [+]When mixing JS and Java: java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper[/+] on Nov 23, 2018
locked as resolved and limited conversation to collaborators on Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kneth@realm-ci@githubdoramon@youngjuning@nlarew

        Issue actions

          When mixing JS and Java: java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper · Issue #1896 · realm/realm-js