0

i want to build a library in android with file inside the classes.jar inside AAR

public class JNI {

    static {
        try {
            NativeUtil.loadLibraryFromJar("/jni/lib-jni.so");
        } catch (IOException e1) {
            e1.printStackTrace();
        }
    }

    public static native String getPassword();
}

the nativeUtil from AdamHeinrich

how do i put the file inside JAR? thanks

Carsten Løvbo Andersen
  • 26,637
  • 10
  • 47
  • 77

1 Answers1

0

You need a gradle script to take care of the extra dependencies. I can recommend android-fat-aar from personal experience.

Alex Cohn
  • 56,089
  • 9
  • 113
  • 307