【发布时间】:2017-09-07 17:29:22
【问题描述】:
我正在构建一个 react-native 项目,但无法添加 aar 文件作为依赖项。
我已按照以下步骤进行
- 创建了 libs 文件夹并将 aar 文件放入其中。
-
用顶级 Gradle 编写
repositories { mavenCentral() flatDir { dirs 'libs' } } -
在依赖项中添加了以下行
compile project(name: "xyz", ext: 'aar')
我在构建时遇到了这个错误
* What went wrong:
A problem occurred evaluating project ':react-native-abc'.
> Required keys [path] are missing from map {name=xyz, ext=aar}.
【问题讨论】:
-
您解决了这个问题吗?
标签: android react-native