[AC-6169] .so libs from .aar third part libraries not copied when compiling module
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2019-03-19T17:24:16.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Appcelerator Modules, Hyperloop |
Labels | aar, android, hyperloop, jni, libraries |
Reporter | libanez |
Assignee | Shak Hossain |
Created | 2019-03-13T14:54:38.000+0000 |
Updated | 2019-03-19T17:42:53.000+0000 |
Description
Hello,
In my app, i'm including a module which contains .aar library which herself contains .so libraries in /jni/armeabi-v7a folder.
My problem is that when i compile my module, the .so libraries are not copied in the resulting .zip file of the module (in the libs folder), and of course app crashes when launched.
I thought it was a problem of folder naming beaucse initially my .so files was on armeabi folder and i saw that its deprecated and we can't use armeabi anymore, so i renamed armeabi to armeabi-v7a in my library and recompiled the .aar, included it in my project, recompiled the module but libs are still not present.
Do you have an idea of what is going wrong ?
Thanks in advance
EDIT : I forgot to mention that i already included in my manifest file the following line :
architectures: arm64-v8a armeabi-v7a x86
Hello, Can you please share a sample project for us to test the issue on our end? Please provide a list of steps to follow for successful regeneration. In the meantime can you follow the guide here https://stackoverflow.com/questions/39278273/how-to-add-aar-in-titanium-module/39957329#39957329 ? Thanks.
Hello, Did you find our last reply helpful for your progress? Let us know the updates from your end. Thanks
Hi Rakhi, For those who encounter the same issue, i resolved the problem (after seeing Titanium SDK source code) : The problem was that on my .aar i had only a /jni/armeabi-v7a folder but (i guess because i have 3 architectures : arm64-v8a armeabi-v7a x86, in the manifest of my module) Titanium SDK was throwing an Exception if one of the folder was not found. So .so files was not copied after SDK didn't found first folder (arm64-v8a). Hope it can help someone else