I'm trying to include a couple of '.AAR' files in my react-native project, I'm not sure how to go about it since I don't have much experience in Java and Android Development. Below are the few steps that I have done and have run into an error.
RN Version: 0.61
this is my android/app/build.gradle:
dependencies{
...
implementation (name: 'mediaplayback-release-1.0.0', ext: 'aar')
implementation (name: 'musickitauth-release-1.0.0', ext: 'aar')
}
this is the android/build.gradle
allprojects{
...
flatDir {
dirs 'libs'
}
}
I have placed the '.AAR' files inside a folder called android/libs
I'm running into the following error when I 'react-native run-android'
* What went wrong:
Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
> More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so'
This is where i got the AAR from : https://developer.apple.com/musickit/
Thanks, any help is appreciated