In the docks, an example of developing an application in Eclipse, everything works. I transfer the project in AndroidStudio, does not work, can not find libraries from * .so files! I tried all the options, made my own JAR, created the Gradle packaging script, created a folder and threw the * .so library there, nothing helps, the same message is always the same:
10-16 13:18:38.030: W/dalvikvm(5101): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/atol/drivers/fptr/IFptrNative; 10-16 13:18:38.030: W/dalvikvm(5101): threadid=1: thread exiting with uncaught exception (group=0x41869438) 10-16 13:18:38.050: E/AndroidRuntime(5101): FATAL EXCEPTION: main 10-16 13:18:38.050: E/AndroidRuntime(5101): java.lang.ExceptionInInitializerError 10-16 13:18:38.050: E/AndroidRuntime(5101): at com.atol.drivers.fptr.IFptr.create(IFptr.java:14) 10-16 13:18:38.050: E/AndroidRuntime(5101): at ru.gc986.testprintserver.printlib.printers.Atol_11.<init>(Atol_11.java:26) An error occurs at the time the object is created using the JAR library. She, in turn, pokes in * .so files, but cannot find what she needs. Who is to blame and what to do?
The solution was suggested on the website of Atol, the object must be placed in the folder - app / src / main / jniLibs / armeabi, and the jar is in the folder - app / src / main / libs, and only then everything starts working!
app\src\maindirectory if another path is not specified inbuild.gradle, and put .so there. - temq