android - Adding device-specific files as a codenameone native lib -


i want add native code specific device native android libs.

so, in other words, have folder full of *.so files: so file list

i have seperate cn1lib app native code contianing several libs. example app showes folder being added alongside normal .jar libs, did same codenameone: native libs

the sofoldercontaining so files (named correctly per example android app).

i build cn1lib, , add main project under lib folder, works. however, when inspect codenameone apk , compare example android app, .so files sit in different locations. example app has under lib folder in root, , codenameone app has under assets folder. causes device requires these files not able find them.

example app vs codenameone structure

the example app being on left, , codenameone app being on right.

is there way so folder under lib folder in apk file using codenameone?

assistance appreciated.

if don't want go through trouble of creating aar there semi-solution.

you create normal android library project, , after building it, manually open archive , drop lib folder in there. add jar file native android dependency.

when build returns codenameone, folder should sitting in apk file :)

the correct way aar approach, not straight-forward once-off solution.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -