How to include .so and .jar files to project


I have some of .so and .jar files, you know, an Android SDK. I want to include them to use in my foreign code. How can i do that?


See the documentation on foreign code - should answer your question :slight_smile:

Hi Bent.

I believe it does not say how to add .jars or .so libraries directly, only java source files.

I’m missing something?


Hi, josemanuelp

I found how-to and would like to share with you.

First, I made libs folder and copy and paste myjar.jar and files on this folder.

 > libs
    > armeabi
    > armeabi-v7a
   - myjar.jar

 - MyProject.uxl
 - MainView.ux
 - MyProject.unoroj

And then make a MyProject.uxl file.

In CopyFile namespace, Name property is the path of libs of your fuse project and ‘TargetName’ is for your destination for Android Studio project.

<Extensions Backend="CPlusPlus" Condition="Android">
    <CopyFile Name="@('libs/myjar':Path)" TargetName="@(Java.LibsDirectory)/myjar.jar" />
    <CopyFile Name="@('libs/armeabi/':Path)" TargetName="@(Java.LibsDirectory)/armeabi/" />
    <CopyFile Name="@('libs/armeabi-v7a/myso':Path)" TargetName="@(Java.LibsDirectory)/armeabi-v7a/" />

Last, add this MyProject.uxl to uno project setting file(.unoproj) like this for including.

  "Packages": [
  "Includes": [

I hope this will be help.


Yes, this helped me a lot.