I am building a react-native project but not able to add an aar
file as a dependency.
I have followed following steps
- Created libs folder and placed aar file in that.
Written this in top level Gradle
repositories { mavenCentral() flatDir { dirs 'libs' } }
added following line to dependencies
compile project(name: "xyz", ext: 'aar')
And I am facing this error while building
* What went wrong:
A problem occurred evaluating project ':react-native-abc'.
> Required keys [path] are missing from map {name=xyz, ext=aar}.