Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29457

Third Party AAR for Java on React Native

$
0
0

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


Viewing all articles
Browse latest Browse all 29457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>