I have a ReactNative project with an Android module that is used to authenticate with spotify using the Spotify SDK (playback will be used later).
When building a project from grandfather, the following error appears:
> Duplicate files copied in APK lib/armeabi-v7a/libgnustl_shared.so File 1: ...root../android/app/build/intermediates/exploded-aar/com.facebook.react/react-native/0.16.1/jni/armeabi-v7a/libgnustl_shared.so File 2: ...root../android/app/build/intermediates/exploded-aar/com.spotify.sdk/spotify-player/1.0.0-beta12/jni/armeabi-v7a/libgnustl_shared.so
Using packagingOptions exclude or pickFirst breaks the application, as the two libraries seem different (one almost double size), but with the same name.
What are the options for solving this problem?
source share