【发布时间】:2022-10-20 19:37:16
【问题描述】:
在我的 React Native Android 项目中,我想使用我自己的包含 AAR 文件的库。 有人可以指导如何在我的 Android 版本中使用 AAR 文件。
以下是我的配置 -
- 反应原生 - 0.69.1
- gradle - 7.4.2
- Android Studio Bumblebee - 2021.1.1 补丁 3
- openjdk - “18.0.1.1” 2022-04-22
我在创建构建时遇到错误 -
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :library-name project caused this error**
【问题讨论】:
标签: android react-native android-studio gradle android-gradle-plugin