Skip to content

No implementation found for OfflineRecognizer.newFromAsset #431

@anthonyfooalways-boop

Description

@anthonyfooalways-boop

I’m trying to initialize Sherpa NCNN’s OfflineRecognizer on Android using OfflineRecognizer.newFromAsset, but I encounter the following error at runtime:

No implementation found for long com.k2fsa.sherpa.ncnn.OfflineRecognizer.newFromAsset(
android.content.res.AssetManager,
com.k2fsa.sherpa.ncnn.OfflineRecognizerConfig
)
(tried Java_com_k2fsa_sherpa_ncnn_OfflineRecognizer_newFromAsset and
Java_com_k2fsa_sherpa_ncnn_OfflineRecognizer_newFromAsset__Landroid_content_res_AssetManager_2Lcom_k2fsa_sherpa_ncnn_OfflineRecognizerConfig_2)

Steps to Reproduce:

Added lib/*.so files from Sherpa NCNN to jniLibs folder.

Added models to assets folder.

Called the following code in Kotlin/Java:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions