BlinkID / blinkid-android

Everything you need to add AI-driven ID scanning into your native Android app.
https://microblink.com/identity/identity-document-scanning/
438 stars 153 forks source link

Getting issue when running unit tests in project after implementing Blink ID #226

Closed bedirguven closed 3 years ago

bedirguven commented 3 years ago

Hi,

I am getting 'Could not initialize class com.microblink.MicroblinkSDK' when running unit tests in project after implementing Blink ID. I setted licence key in Application class. I researched before writing here but there is no information anywhere about that.

Environment Details

**BlinkID version: 5.7.0

SandraZiv commented 3 years ago

Hi @bedirguven

can you send us a code snippet of the test that you are trying to run or minimal sample application so we can reproduce the issue?

Best regards, Sandra

bedirguven commented 3 years ago

Hi @SandraKuzmic

There is no related unit test about this situation. When i initialize blink id with licence key, 64 unit tests getting crash. If i don't add blink id to my application class , all test are passed correctly.

image

image

image

Thanks.

SandraZiv commented 3 years ago

Hi @bedirguven

did you try setting the license key in the @Before method of your tests?

Best regards, Sandra

bedirguven commented 3 years ago

Hi

Yes i tried this.Also this is not a solution for this situation.Because i am using blink id for one fragment but unit tests getting crash for not releated 21 class.

SandraZiv commented 3 years ago

Hi,

I tried running some tests in a minimal sample app that uses BlinkID and there were no problems with test execution. Can you create and send us your minimal sample so we can reproduce the issue? Without it, it is hard to guess where the problem is.

Best regards, Sandra

anjapenic commented 3 years ago

Hi @bedirguven,

Since this issue is inactive, we're closing it. If you need any further assistance feel free to open a new issue or contact us at support@microblink.com.

Regards, Anja