app-bundle-samples
app-bundle-samples copied to clipboard
Dynamic feature UnsatisfiedLinkError
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