{"action":"created","issue":{"url":"https://api.github.com/repos/box/box-android-preview-sdk/issues/19","repository_url":"https://api.github.com/repos/box/box-android-preview-sdk","labels_url":"https://api.github.com/repos/box/box-android-preview-sdk/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/box/box-android-preview-sdk/issues/19/comments","events_url":"https://api.github.com/repos/box/box-android-preview-sdk/issues/19/events","html_url":"https://github.com/box/box-android-preview-sdk/issues/19","id":365961246,"node_id":"MDU6SXNzdWUzNjU5NjEyNDY=","number":19,"title":"UnsatisfiedLinkError on Lenovo devices.","user":{"login":"evgenii-kanivets","id":11427267,"node_id":"MDQ6VXNlcjExNDI3MjY3","avatar_url":"https://avatars2.githubusercontent.com/u/11427267?v=4","gravatar_id":"","url":"https://api.github.com/users/evgenii-kanivets","html_url":"https://github.com/evgenii-kanivets","followers_url":"https://api.github.com/users/evgenii-kanivets/followers","following_url":"https://api.github.com/users/evgenii-kanivets/following{/other_user}","gists_url":"https://api.github.com/users/evgenii-kanivets/gists{/gist_id}","starred_url":"https://api.github.com/users/evgenii-kanivets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgenii-kanivets/subscriptions","organizations_url":"https://api.github.com/users/evgenii-kanivets/orgs","repos_url":"https://api.github.com/users/evgenii-kanivets/repos","events_url":"https://api.github.com/users/evgenii-kanivets/events{/privacy}","received_events_url":"https://api.github.com/users/evgenii-kanivets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-02T15:44:31Z","updated_at":"2018-11-07T21:43:41Z","closed_at":null,"author_association":"NONE","body":"Hi, we are getting crashes with following Stack Trace:\r\n\r\n```\r\nFatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file \"/data/app/com.m360.android-2/base.apk\"],nativeLibraryDirectories=[/data/app/com.m360.android-2/lib/x86_64, /data/app/com.m360.android-2/base.apk!/lib/x86_64, /vendor/lib64, /system/lib64]]] couldn't find \"libbox-jni.so\"\r\n       at java.lang.Runtime.loadLibrary(Runtime.java:367)\r\n       at java.lang.System.loadLibrary(System.java:1076)\r\n       at com.box.androidsdk.preview.fragments.BoxPreviewDocumentFragment.<clinit>(BoxPreviewDocumentFragment.java:66)\r\n       at com.box.androidsdk.preview.fragments.BoxPreviewFragment.createInstance(BoxPreviewFragment.java:485)\r\n       at com.box.androidsdk.preview.adapters.PreviewFragmentStatePagerAdapter.getItem(PreviewFragmentStatePagerAdapter.java:42)\r\n       at android.support.v4.app.FragmentStatePagerAdapter.instantiateItem(FragmentStatePagerAdapter.java:109)\r\n       at com.box.androidsdk.preview.adapters.PreviewFragmentStatePagerAdapter.instantiateItem(PreviewFragmentStatePagerAdapter.java:104)\r\n       at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1004)\r\n       at android.support.v4.view.ViewPager.populate(ViewPager.java:1152)\r\n       at android.support.v4.view.ViewPager.populate(ViewPager.java:1086)\r\n       at android.support.v4.view.ViewPager.setAdapter(ViewPager.java:534)\r\n       at com.box.androidsdk.preview.BoxPreviewViewPager$4.run(BoxPreviewViewPager.java:207)\r\n       at android.os.Handler.handleCallback(Handler.java:739)\r\n       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n       at android.os.Looper.loop(Looper.java:148)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5609)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)\r\n```\r\n\r\nFor now this crash happens only on 2 Lenovo devices - \"Lenovo YT3-X90F\" and \"YOGA3 Tablet Pro\".\r\n\r\nDo you have any ideas why it happens and how it can be fixed?\r\n\r\nThanks in advance :) "},"comment":{"url":"https://api.github.com/repos/box/box-android-preview-sdk/issues/comments/436788174","html_url":"https://github.com/box/box-android-preview-sdk/issues/19#issuecomment-436788174","issue_url":"https://api.github.com/repos/box/box-android-preview-sdk/issues/19","id":436788174,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjc4ODE3NA==","user":{"login":"doncung","id":624482,"node_id":"MDQ6VXNlcjYyNDQ4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/624482?v=4","gravatar_id":"","url":"https://api.github.com/users/doncung","html_url":"https://github.com/doncung","followers_url":"https://api.github.com/users/doncung/followers","following_url":"https://api.github.com/users/doncung/following{/other_user}","gists_url":"https://api.github.com/users/doncung/gists{/gist_id}","starred_url":"https://api.github.com/users/doncung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doncung/subscriptions","organizations_url":"https://api.github.com/users/doncung/orgs","repos_url":"https://api.github.com/users/doncung/repos","events_url":"https://api.github.com/users/doncung/events{/privacy}","received_events_url":"https://api.github.com/users/doncung/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T21:43:41Z","updated_at":"2018-11-07T21:43:41Z","author_association":"CONTRIBUTOR","body":"I believe this only happens on x86 devices. Our current pdf library is only bundled with a 32 bit library and so if you are using multiple native libraries the if one is using a 64 bit library the OS will try to use a nonexistent 64 bit library for our SDK as well. \r\n\r\nThere is an pdf library change we are evaluating that includes a 64 bit x86 library, but unfortunately also doubles the library size. As such third parties will need to use apk splitting to reduce their apk size if we go with that approach.\r\n \r\nThis is a stack overflow that discusses the reason and explains a work around involving splitting. \r\nhttps://stackoverflow.com/questions/34003040/android-multidex-unsatisfiedlinkerror-couldnt-find-so-file\r\n\r\n"}}
{"actor":{"display_login":"doncung"}}