Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Text relocations crash using Marshmallow #170

Closed
aaronennis5778 opened this issue Feb 9, 2016 · 5 comments
Closed

Text relocations crash using Marshmallow #170

aaronennis5778 opened this issue Feb 9, 2016 · 5 comments

Comments

@aaronennis5778
Copy link

Using both the zxing and zbar libraries, there are crashes related to text relocations using Marshmallow.

java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.harristeeter.htmobile-1/lib/arm/libiconv.so: has text relocations
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at me.dm7.barcodescanner.zbar.ZBarScannerView.(ZBarScannerView.java:32)
at com.harristeeter.htmobile.activities.SimpleScannerActivity.onCreate(SimpleScannerActivity.java:19)
at android.app.Activity.performCreate(Activity.java:6251)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@chrisfoulds
Copy link

Also getting this, can new libs be made ?

@rajeefmk
Copy link

@aaronennis5778 @chrisfoulds This issue has been fixed from 1.8.3 and above (Ref: #123 )

@dm77
Copy link
Owner

dm77 commented Mar 25, 2017

What @rajeefmk said. Thank you guys

@dm77 dm77 closed this as completed Mar 25, 2017
@sethwhite2
Copy link

@dm77 @rajeefmk this issue is not resolved.

I'm using 1.9 and I'm experiencing the same issue.

@sethwhite2
Copy link

sethwhite2 commented Mar 28, 2017

@aaronennis5778 @chrisfoulds @dm77
I'm able to resolve this issue by adding this to my project's build.gradle file:

android {
    ...
    sourceSets {
        main.jniLibs.srcDirs = ['libs']
        test.jniLibs.srcDirs = ['libs']
    }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants