{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/2814","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/2814/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2814/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/2814/events","html_url":"https://github.com/facebook/react-native/issues/2814","id":107045246,"number":2814,"title":"[Android] React Native for Android is incompatible with 3rd-party 64-bit libraries","user":{"login":"corbt","id":176426,"avatar_url":"https://avatars.githubusercontent.com/u/176426?v=3","gravatar_id":"","url":"https://api.github.com/users/corbt","html_url":"https://github.com/corbt","followers_url":"https://api.github.com/users/corbt/followers","following_url":"https://api.github.com/users/corbt/following{/other_user}","gists_url":"https://api.github.com/users/corbt/gists{/gist_id}","starred_url":"https://api.github.com/users/corbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corbt/subscriptions","organizations_url":"https://api.github.com/users/corbt/orgs","repos_url":"https://api.github.com/users/corbt/repos","events_url":"https://api.github.com/users/corbt/events{/privacy}","received_events_url":"https://api.github.com/users/corbt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf"},{"url":"https://api.github.com/repos/facebook/react-native/labels/Help%20Wanted","name":"Help Wanted","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2015-09-17T18:33:00Z","updated_at":"2016-10-27T17:12:25Z","closed_at":null,"body":"Hey, it appears that React Native on Android doesn't provide a 64-bit version of the `libreactnativejni.so` native library, which can cause compatibility issues on 64-bit devices. I ran into this while attempting to integrate React Native with a large existing application I'm developing.\r\n\r\nSteps to reproduce:\r\n\r\n1. Create a new application with `react-native init`.\r\n2. In the \"android/app/build.gradle\" file, add `compile 'io.realm:realm-android:0.82.2'` to the end of the `dependencies {}` block. (Note that I don't think this is an issue specifically caused by Realm, it's just an example dependency with a 64-bit native library).\r\n3. Attempt to run on a Nexus 9. \r\n\r\nStack trace:\r\n```\r\nE/AndroidRuntime(32171): FATAL EXCEPTION: main\r\nE/AndroidRuntime(32171): Process: com.androidemberall, PID: 32171\r\nE/AndroidRuntime(32171): java.lang.UnsatisfiedLinkError: could find DSO to load: libreactnativejni.so\r\nE/AndroidRuntime(32171): \tat com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:213)\r\nE/AndroidRuntime(32171): \tat com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:178)\r\nE/AndroidRuntime(32171): \tat com.facebook.react.bridge.JSCJavaScriptExecutor.<clinit>(JSCJavaScriptExecutor.java:19)\r\n...\r\n```\r\n\r\nI believe this to be caused by the shared library loading logic explained in [this answer](http://stackoverflow.com/a/27202958) on StackOverflow. Since Realm includes a 64-bit native binary, the system no longer automatically falls back to the 32-bit version of `libreactnativejni.so` provided by React.\r\n\r\nThis bug is blocking me from integrating React Native into my existing application, which I'm really excited to try!"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/256709338","html_url":"https://github.com/facebook/react-native/issues/2814#issuecomment-256709338","issue_url":"https://api.github.com/repos/facebook/react-native/issues/2814","id":256709338,"user":{"login":"LegNeato","id":368904,"avatar_url":"https://avatars.githubusercontent.com/u/368904?v=3","gravatar_id":"","url":"https://api.github.com/users/LegNeato","html_url":"https://github.com/LegNeato","followers_url":"https://api.github.com/users/LegNeato/followers","following_url":"https://api.github.com/users/LegNeato/following{/other_user}","gists_url":"https://api.github.com/users/LegNeato/gists{/gist_id}","starred_url":"https://api.github.com/users/LegNeato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LegNeato/subscriptions","organizations_url":"https://api.github.com/users/LegNeato/orgs","repos_url":"https://api.github.com/users/LegNeato/repos","events_url":"https://api.github.com/users/LegNeato/events{/privacy}","received_events_url":"https://api.github.com/users/LegNeato/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T17:12:25Z","updated_at":"2016-10-27T17:12:25Z","body":"- [x]  64-bit JSC: facebook/android-jsc#5 -- **@leeight has a PR up** 🎉 \r\n- [x]   Targeting armv8 with Buck: facebook/buck#414 -- **I fixed this in Buck master** 🍻 \r\n- [ ]   Building all the dependencies with 64-bit support -- **No one working on it** 😢 \r\n\r\nThere should be enough working here with @leeight's outstanding PR and my landed Buck change to start working on the react-native 64bit dependencies. Any takers?"}}
{"actor":{"display_login":"LegNeato"}}