-
Notifications
You must be signed in to change notification settings - Fork 27.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mechanism for using static library on Android? #75492
Comments
Hi @buzmeg |
Perhaps. But you will note that the case of "Static Library For Android" is missing from: "Binding to native code using dart:ffi" And, having already looked rather extensively through both Google and StackOverflow, it seems like nobody who asked this question actually got any solution. At minimum, this is a documentation fault. At maximum, this can't be done and is a genuine bug. I know that I certainly don't have enough knowledge about Flutter to determine which category this falls into. So, I'd at least like this issue to stay open until we determine this much. Thanks. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I can install my dynamic library libopus.so into my Flutter project by placing it in the android/src/main/jniLibs/arm64-v8a folder. That works fine and DynamicLibrary.open() finds it.
However, if I try to use a static library, "libopus.a" that fails.
Where do I put the ".a" file on Android? And how do I lookup the symbol?
This is the Dart/Flutter code I am using:
Thanks.
The text was updated successfully, but these errors were encountered: