iMicknl / cordova-plugin-openalpr

This Cordova plugin adds support for the OpenALPR (Automatic License Plate Recognition) library, which provides support for retrieving the license plate from a picture.
MIT License
33 stars 23 forks source link

java.lang.UnsatisfiedLinkError: dlopen failed: library "libopenalprjni.so" not found #55

Closed al-laythi closed 2 years ago

al-laythi commented 2 years ago

I get this error whenever I try to scan some images using OpenALPR.scan(result.value, scanOptions), it's worth nothing that the build gradle for the openalpr is this:

repositories {
    google()
    mavenCentral()
    flatDir{
        dirs 'src/main/libs', 'libs'
    }
}

dependencies {
    implementation fileTree(dir: 'src/main/libs', include: ['*.jar'])
    implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
    implementation "org.apache.cordova:framework:$cordovaAndroidVersion"
    // SUB-PROJECT DEPENDENCIES START
    implementation "androidx.core:core:1.6.+"
    // SUB-PROJECT DEPENDENCIES END
}

While my directory actually shows src/main/jniLibs/armeabi-v7a , changing the gradle to such did not appear to help however

using version 2.1.0 for this repo