Home > Mobile >  External library version conflicts
External library version conflicts

Time:05-29

I have two different printer libraries, which are depending on same "java jPOS" library but with different versions,
enter image description here
enter image description here,
So both printers referencing on same jpos library because they have same package naming, one of this printers (custom-printer) didn't working on version of new library.
enter image description here
Gradle implimintation:
implementation files('/home/daniel/Desktop/JPOS_Service_Objects/CBMjpos.jar')
compile group: 'com.custom', name: 'custom-jcl-printer-driver', version: '1.0'

How can i solve it without decompiling and renaming this libraries?

CodePudding user response:

I found very simple tool to repackage the libraries named (jarjar) - https://github.com/shevek/jarjar

  • Related