-
Notifications
You must be signed in to change notification settings - Fork 171
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
.SO file not packed with APK file #333
Comments
Not sure what's the root cause. Can you show me the exception that is thrown? I have just checked the
|
Hi Luben,
I hope you got the issue reported above. The zstd aar contains the native libraries but in multi module app architecture .so files are not getting loaded. Individually this works for separate modules. But when zstd gradle dependency is added with one sub module and then that sub module is added as gradle dependency to the main module the .so files are not loaded. I would request you to please go through my issue above and look at the screenshots attached. |
Not sure I can help. Looks to me like mismatch between versions. If you use the above |
I m trying to integrate the zstd native C gradle dependency in my android project. The dependency is as below :
My android app is a multi module architecture. I have a main module and then there are sub modules like network, image loading, analytics etc added as sdk(gradle dependency) in the main module build.gradle file.
I have added above zstd dependency in my network module and it works perfectly. The zstd .so files are loaded in the lib folder for different CPU architectures when I create the apk of network module and compression/decompression functionality also works well.
Now when I add network module artifact in my main module build.gradle then the zstd .so files are not loaded in the lib folder in the main module apk.
I have observed that when I add zstd dependency directly in main module build.gradle then .so files gets loaded. But when added via network module .so files doesnt load and I get run time crash while loading the zstd library.
I am adding screenshots for the synced gradle dependency for network module as well as main module. You can see the difference as network module synced dependency as "@aar" and the main module sync gradle dependnecy does not have "@aar".
Kindly help to resolve the issue as I am not able to use zstd in my project.
The text was updated successfully, but these errors were encountered: