-
Notifications
You must be signed in to change notification settings - Fork 332
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
Request: Dynamic feature module handling native libs #30
Comments
Hi, @elmira-asd! I encountered the same issue. Did you solve that one? |
@crocodilys Hi there, first i loaded the libs kind of locally calling System.loadLibrary("c++_shared") and it worked fine, but it's not recommended if you have another libs (you can check when analysing the apk) because in . my case i should have been careful about different system/device architectures, in some devices it may crash! |
Does this module help? |
This Module will definitely help if i have those C++ libs in my libs, but they were wrapped as |
@crocodilys Still not recommended if you're using third SDK, so you can ask them to fix this one in their side |
It shouldn't matter whether the .so are included via an aar or directly within the feature they're used in. The |
@elmira-asd Still cannot understand if you were able to use TensorFlow in a dynamic feature or not. I faced the same problem. Still not sure if calling |
Closing this as it's not related to the sample at hand any longer. Feel free to ask a question on StackOverflow and link it here. |
Hi @elmira-asd mentioned issue if you are able to fix please guide me, same issue i am facing. |
It's better to change the |
@elmira-asd I have the same problem as you, a third-party aar contains multiple so files, and the aar already uses System.loadLibrary. How should I solve it? |
The .aar file is third party and I can't change it. Strange if I kill the app and restart it, everything is fine |
你可真爱关闭issue,并且没有一次是有提供有效信息的。你就不能搞个demo出来吗?动态模块里面依赖aar,这个aar包含第三方so库。你会怎么去使用。搞一个demo很难吗。天天就爱关闭issue。你的kpi是靠这个来的吗 |
i'm using Dynamic Feature Module for a feature which has third SDK library as
.AAR
file.When analysing the apk i found out this sdk is using Native / C++ codes and the structure is like:
i know that in dynamic module when we want to use native libs we should implement for instance something like :
SplitInstallHelper.loadLibrary(this, "tensorflowlite_gpu_gl")
however i'm getting this error:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libtensorflowlite_gpu_gl.so" not found
I'm not sure in Gradle in dynamic module what should i do to be able to load those .so libs?
The text was updated successfully, but these errors were encountered: