In order to use your library I need to add these libraries
implementation 'net.sf.kxml:kxml2:2.3.0'
implementation 'com.caverock:androidsvg:1.3'
implementation 'org.osmdroid:osmdroid-mapsforge:6.0.3'
implementation 'org.mapsforge:mapsforge-core:0.10.0'
implementation 'org.mapsforge:mapsforge-map:0.10.0'
implementation 'org.mapsforge:mapsforge-map-reader:0.10.0'
implementation 'org.mapsforge:mapsforge-themes:0.10.0'
implementation 'org.mapsforge:mapsforge-map-android:0.10.0'
When I execute the proguard in order to generate the APK release I have this error
Reading library jar [/Users/paolodozio/Library/Android/sdk/platforms/android-26/android.jar]
Note: duplicate definition of library class [org.xmlpull.v1.XmlSerializer]
Note: duplicate definition of library class [org.xmlpull.v1.XmlPullParserException]
Note: duplicate definition of library class [org.xmlpull.v1.XmlPullParserFactory]
Note: duplicate definition of library class [org.xmlpull.v1.XmlPullParser]
Reading library jar [/Users/paolodozio/Library/Android/sdk/build-tools/28.0.3/core-lambda-stubs.jar]
Reading library jar [/Users/paolodozio/Library/Android/sdk/platforms/android-26/optional/org.apache.http.legacy.jar]
Note: there were 4 duplicate class definitions.
it says
You should also not add libraries to your application that are already part of the Android runtime (notably org.w3c.dom, org.xml.sax, org.xmlpull.v1, org.apache.commons.logging.Log, org.apache.http, and org.json).
So I think there is a double inclusion of the Android libraries.
I tried to add one implementation at time
with this
implementation 'org.mapsforge:mapsforge-core:0.10.0'
the proguard terminate correctly
If I add also the map library
implementation 'org.mapsforge:mapsforge-core:0.10.0'
implementation 'org.mapsforge:mapsforge-map:0.10.0'
I got the above error
I already tried to use
-dontnote org.xmlpull.v1.**
but the error is the same.
Do you have any suggestions?
Thanks.
Paolo.