Community

Getting Error loading ABBYY RTR SDK on Google Pixel Phone running Android 7.1.1

When I try to use the ABBYY RTR SDK in my app, I get the following exception at runtime. This is only happening on Google Pixel phone running android 7.1.1. All works fine on my old dNexus 7 tablet. Does it have to do with the 64-bit processor?

E/SmartLocker: Error loading ABBYY RTR SDK: E/SmartLocker: java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-support-annotations-24.2.1_145b9c5f265b11bbdf100e34b342d8c373393ead-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-realm-android-0.87.5_1c3d3a8de47990970783d8617f4a771606b55ce0-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-lucene-snowball-3.0.3_7832e7dc9f9a7ea192374b94a6e27c3d3a232a17-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-jsr305-1.3.9_cb1408d096ae38fb85c8feff39e28e3fe940990a-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-jackson-core-2.1.3_e31c9c2b92ce54166d9f917475a35d78aa839f14-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-internal_impl-24.2.1_d59ac9d7225b5bdd02c7e83f526771c0ae57079d-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-internal_impl-24.2.1_c19008c7aa925c37b7ea4457948287f2a419842d-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-internal_impl-24.2.1_8db758837af9edb2cdf585c35a5f4307d2bf7f2b-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-internal_impl-24.2.1_814170b694c94642c973cec6e2d8d9dc026a41c3-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-internal_impl-24.2.1_3b6f8354894c2a4ca5ea3f6c0a7b7223ffb446fe-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-intermediates-exploded-aar-abbyy-rtr-sdk-1.0_ebdb5e760ff0845a74c77fa1c1abbeeae796078a-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-guava-jdk5-17.0_29f1216f9c4cb5865fea18a0aef04b58d27f422e-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-gson-2.1_ca694f65c74dea7cb4d4405f2c2ac597f6ffa0dc-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-google-oauth-client-1.21.0_61594f0d5b4c3cd90cb53515a8d824b3b3bd8dd0-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-google-http-client-jackson2-1.21.0_13547bf92f18b5fcca3e71eb63458d97136f3e4e-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-google-http-client-gson-1.20.0_873a9173a7984bd8d24e2fcb51b6af7e468c93da-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-google-http-client-android-1.20.0_f9b3feddfd7746e56916d04cf39b7ec9f6db0805-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-google-http-client-1.21.0_7907416b54a24f9532a794a452b1475465789fc2-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-google-api-services-vision-v1-rev2-1.21.0_ca3d701cb3ba9a2129cbf728fd60fb8f544cb694-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-google-ap E/SmartLocker: i-client-android-1.20.0_9ef45f4231091e37a2eeed80eeb7ce11434ce11d-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-google-api-client-1.21.0_0fac61a312c81c63767239b6ac1ea5f685bd5fd7-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-fuzzywuzzy-android-fix_a1a36972e8d61f8d7e1c1dc562b465b1fb3180a6-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-fuzzywuzzy-1.1.6_641a910b0ef7be68cd5aab183c6fca53bb4de06d-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-core-3.2.1_43d5ce39aa28076eb1a12a1ac26753168834f59f-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-constraint-layout-solver-1.0.0-beta4_dcdd886fb532e3958f326475f5f046592b56925c-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-commons-codec-1.5_3d124ab600f91bb1ed8568d5c686017b79949260-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.journeyapps-zxing-android-embedded-3.3.0_0e0dee520b29ad669f08bc1285f5638d66e18d46-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.firebase-firebase-messaging-9.4.0_fd2d84ed7a01d9c47e570ec5d34f55d14890188d-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.firebase-firebase-iid-9.4.0_a2bffd3714d164b1b6085dc8f650c00d730c1f43-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.firebase-firebase-common-9.4.0_31835a7bb147e92c2964ee47251795d76117c517-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.firebase-firebase-analytics-impl-9.4.0_972911444fade416a6889f083472d94b570dd3a9-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.firebase-firebase-analytics-9.4.0_70e0db8c1e138e46a89f3c6c32443a25342f29d4-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.android.gms-play-services-vision-9.4.0_138a0c01a3541484a9b4defda22ff2d9bba889d1-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.android.gms-play-services-tasks-9.4.0_fed7ca92e16fc3d9257837e9049debb2d35f8eb8-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.android.gms-play-services-basement-9.4.0_9dbb434d8feb766c4d42137b87dade4bbd3080ec-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.google.android.gms-play-services-base-9.4.0_f7839001d14dc0950215d4b3b115a70b9aa7ae70-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.github.gcacace-signature-pad-1.1.0_5187209e62c8d3d2dd47f0a610c7ce5522ce73ea-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.github.felHR85-UsbSerial-3.3_7f7fb8cde7a27b2fccd01d601b7dd31b3eb0e449-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support.constraint-constraint-layout-1.0.0-beta4_e2cb46fd54624221d5452570294d878821c9fb6b-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_372a0f580423405a5d8e94c83b3a259a830509e1-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_6275f2a8a497e57e2484f31a5f96320300633fa2-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_0f2b45230441bcec1a5c7a2bbb428733acbb4081-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_dc6af021fb36370eda01778b32fc12fbb8efb20b-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-support-core-utils-24 E/SmartLocker: .2.1_f2a8879f0c13cc1c8082424555dd912c9442631c-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-support-core-ui-24.2.1_1fcc8acc3e1edfe40d8331f1036ea4422dff6818-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-support-compat-24.2.1_32cd3630b0f6635cc1d830fa96151e8bf82b72fd-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-recyclerview-v7-24.2.1_9ac0f3141ee8510ec58dbbe90592291b1ef95f7a-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-gridlayout-v7-24.2.1_b53b0551f53e13ae009191fb0630dd0050a42ecc-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-design-23.4.0_3ba8390c882074018af93ac711c7592eee30245d-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-cardview-v7-24.2.1_34a385df93901ce63e5a3ddb57905bc02eed07c4-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-appcompat-v7-24.2.1_91760c07dd910df21bd8f4fa0d43df893d6c497d-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-com.android.support-animated-vector-drawable-24.2.1_134d098d80fa46a4bc658a6c03bdb89c1f94b0fb-classes.dex", dex file "/data/data/com.smiota.smartlocker/files/instant-run/dex/slice-android-async-http-1.4.9_abf0c0deb7547c90e6340b94c0c83f6321e72f6a-classes.dex"],nativeLibraryDirectories=[/data/app/com.smiota.smartlocker-1/lib/arm64, /system/fake-libs64, /data/app/com.smiota.smartlocker-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libabbyy-rtr-sdk.so" at java.lang.Runtime.loadLibrary0(Runtime.java:984) at java.lang.System.loadLibrary(System.java:1530) at com.abbyy.mobile.ocr4.Engine.loadNativeLibrary(Engine.java:351) at com.abbyy.mobile.rtr.EngineImpl.create(BackgroundProcessor.java:1088) at com.abbyy.mobile.rtr.Engine.load(Engine.java:29) at com.smiota.smartlocker.abbyy.ScanShippingLabel.createTextCaptureService(ScanShippingLabel.java:311) at com.smiota.smartlocker.abbyy.ScanShippingLabel.onCreateView(ScanShippingLabel.java:541) at android.app.Fragment.performCreateView(Fragment.java:2353) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:959) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1149) at android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1251) at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2311) at android.app.FragmentController.onCreateView(FragmentController.java:98) at android.app.Activity.onCreateView(Activity.java:5901) at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:36) at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:75) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:777) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.rInflate(LayoutInflater.java:858) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.inflate(LayoutInflater.java:518) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) E/SmartLocker: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.smiota.smartlocker.activity.ScanAllActivity.configureLayout(ScanAllActivity.java:70) at com.smiota.smartlocker.activity.ReceivePackageActivity.onCreate(ReceivePackageActivity.java:50) at com.smiota.smartlocker.activity.ScanAllActivity.onCreate(ScanAllActivity.java:62) at android.app.Activity.performCreate(Activity.java:6679) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Lilya Chesnova

    Hello!

    In current public version arm64 is not supported, but can you please contact our team directly for discussing the options of extended version of RTR SDK? You can do this via the form: http://rtrsdk.com/contacts/

    0
  • Avatar
    Lilya Chesnova

    Our developers also commented to following:

    You can use 32-bit version on a 64-bit device if you don't have to mix it with other 64-bit native libraries. To do so you must be aware of the following:

    When your application is loaded on a 64-bit device, the android runtime looks for jni\arm64-v8a directory inside your application package (apk). If the folder is there, it starts a 64-bit process and loads native libraries from the above directory. If not it looks for jni\armeabi-v7a etc. and starts in 32-bit mode.

    You can use 'splits' in your gradle script to ensure that arm64-v8a is not inсluded in the apk (see details in android documentation):

    splits {
            abi {
                `enter code here`enable true
                reset()
                // To specify multiple abi's use comma: 'x86', 'armeabi', 'armeabi-v7a', 'arm64-v8a'
                include 'armeabi-v7a'
            }
        }
    
    0

Please sign in to leave a comment.