I've got a problem with external dependencies. My project structure uses shared code for java projects and Android.
The shared code creates jar files and are linked (scope: compile) into my Android library (AAR). This works perfect. But then, I want to use the AAR dependency into my APK and I get an Duplicated file: MANIFEST.MF error, because the APK will include it.
<extractDuplicates>true</extractDuplicates> doesn't do anything for these manifest.mf file. How can I fix this?
This is the error from the shell:
[ERROR] Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.3.0:apk (default-apk) on project com.example: Duplicated file: MANIFEST.MF, found in archive ~/.m2/repository/com/example/shared/1.0.0-SNAPSHOT/com.example.shared-1.0.0-SNAPSHOT.jar and ~/.m2/repository/com/example/server/1.0.0-SNAPSHOT/com.example.server-1.0.0-SNAPSHOT.jar: Duplicate files at the same path inside the APK -> [Help 1]