faceterteam / PayCards_Android

Credit card scanning for mobile apps
https://pay.cards/
Other
197 stars 126 forks source link

nothing happen with android8 #24

Open AymenSoft opened 6 years ago

AymenSoft commented 6 years ago

i'm using paycards in my app, in android8 when click on button to start scan intent, nothing happen, can any one help

daniil-pastuhov commented 5 years ago

Logs:

2018-11-26 12:25:48.272 15547-15547/my.package E/ScanCardActivity: Scan card failed
    java.lang.RuntimeException: onScanCardFinishedWithError()
        at cards.pay.paycardsrecognizer.sdk.ui.ScanCardActivity.onScanCardFailed(ScanCardActivity.java:72)
        at cards.pay.paycardsrecognizer.sdk.ui.ScanCardActivity.onCreate(ScanCardActivity.java:36)
        at android.app.Activity.performCreate(Activity.java:7183)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6944)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
     Caused by: cards.pay.paycardsrecognizer.sdk.camera.RecognitionUnavailableException: Unsupported architecture
        at cards.pay.paycardsrecognizer.sdk.ui.ScanCardActivity.onCreate(ScanCardActivity.java:36) 
        at android.app.Activity.performCreate(Activity.java:7183) 
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220) 
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910) 
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032) 
        at android.app.ActivityThread.-wrap11(Unknown Source:0) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696) 
        at android.os.Handler.dispatchMessage(Handler.java:105) 
        at android.os.Looper.loop(Looper.java:164) 
        at android.app.ActivityThread.main(ActivityThread.java:6944) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 
AymenSoft commented 5 years ago

@daniil-pastuhov thank you for log, so is there any helpful solution for that

daniil-pastuhov commented 5 years ago

@AymenSoft

I see also E/Parcel: Class not found when unmarshalling: cards.pay.paycardsrecognizer.sdk.ui.ScanCardRequest

But unfortunately don't see any solution now :(

zharassamat commented 5 years ago

I have the same problem on android 8.1 , but it's working on android 5.0. So I created demo project for card scanning , and it's working for both OS versions(8.1, 5.0).

But I can't find the reason why it's not working on my main project for android 8.1

tommybuonomo commented 5 years ago

By searching into the library, I found that the RecognitionCoreNdk couldn't be initialize with an error Fatal Exception: java.lang.UnsatisfiedLinkError. Following this article I added this filters into the build.gradle:

defaultConfig {
    ...
    ndk {
        abiFilters "armeabi-v7a", "x86", "armeabi", "mips"
    }
}

And it works

OfsTr commented 5 years ago

@tommybuonomo it's working, thank you for solution