app-bundle-samples icon indicating copy to clipboard operation
app-bundle-samples copied to clipboard

Dynamic feature UnsatisfiedLinkError

Open imaiya opened this issue 1 year ago • 0 comments

I'm using the speech recognition of azure, because the aar provided by azure is relatively large, so I use this feature as a dynamic feature module, like this Implementation com.microsoft cognitiveservices.speech: client-sdk: 1.27.0 '

com.microsoft cognitiveservices.speech: client-sdk contains the so file, and will automatically System.loadLibrary (") inside aar.

After my dynamic feature module is installed, the speech recognition function is called in the current activity, and the base module uses reflection to call the dynamic module code, but UnsatisfiedLinkError

Oddly enough, if I kill the app and restart it, it works fine

How can I solve this problem

Seems similar to this #30

imaiya avatar Sep 10 '23 03:09 imaiya