In my Android project, I included two libraries as a JAR in the libs folder. And I add them to the Gradle assembly, as shown below.
dependencies { compile files('libs/siddhi-core-4.0.0-M13-SNAPSHOT.jar') compile files('libs/siddhi-execution-math-4.0.2-SNAPSHOT.jar') }
These two jar files have a file with the same name ("org.wso2.siddhi.annotation.Extension"), but with different content. And both files are important for the project. Since it has the same name as Gradle, it will not build a statement
Duplicate files copied in APK
How to combine these two files into one file with the same name? These two files are text files with a list of class names. Two files have two different lists. Therefore, I want to combine them into one list in a text file with the same name.

source share