i can compile it, but there problems.
normally, if you have an .aar file to include, you simply put it in the libs folder of the project
at the same level as src. i have had no problems with this in the past.
in this case, none of the references can be resolved. in other words,
1) putting the .aar in the libs folder
and
2) adding the .aar to "depends on" option
was not enough.
in order to compile successfully, i had to:
1) move the mposLibobj.setOnTransactionFinishedListener() to the SaleExample() method. it removes the error, but i don't know if it belongs there or somewhere else. i have no way of testing.
2) change "stratTransaction()" to "startTransaction()". it was a typo.
3) extract the PclServiceLib_2.10.00.jar, PclUtilities_2.10.00.jar, and classes.jar from the mposintegrado.aar and copy them to the libs folder. refer to them in the @dependson option:
@DependsOn(values = { "mposintegrado.aar","PclServiceLib_2.10.00.jar", "PclUtilities_2.10.00.jar", "classes.jar" })
4) make a dummy hexStringToByteArray() method. you need one. i didn't see it anywhere. it's easy enough to write or find one.
so, it can be compiled, but i have no idea what happens when you try to run. i also think my solution to the .aar problem is not the correct one. i did what i had to do to make the compiler happy,
but i think there will be problems when you actually try to use the library. i wanted to try to give you something that built without error. maybe you can go from there. i don't know.
i'm going to try to post:
PCLServicio.java
PclServiceLib_2.10.00.jar
PclUtilities_2.10.00.jar
classes.jar
the library and the xml
you will have to look very carefully at my PCLServicio.java to compare it with your original. i am concerned that mposLibobj.setOnTransactionFinishedListener() needs to go somewhere else. perhaps the original code that you're trying to wrap tells you.
and i think the biggest problem is why the mposintegrado.aar does not work with the SLC. i can't answer that. don't forget, if you try to use the library with a b4a test project, you need to reference all the .jars and the .aar (#additionaljar: ...). plus you need to copy them all to your additional libraries folder.