I am creating a React Native android module and my code imports classes from a third-party SDK, which is provided as aar file. How to link this file with my module? I tried adding
allprojects { repositories { flatDir { dirs: 'libs' } } }
and
dependencies { ... other deps ... compile (name:'my-external-lib', ext:'aar') }
in the build.gradle file and placing this my-external-lib.aar file in the libs/ folder, but still getting an error message when creating an application with the MyApp active response with adaptive-my-module enabled:
* What went wrong: A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_developmentDebugApkCopy'. > Could not find :my-external-lib:. Required by: MyApp:app:unspecified > MyApp:react-native-my-module:unspecified
Any tips?
source share