【发布时间】:2019-01-10 19:55:01
【问题描述】:
我正在构建一个依赖外部(第三方)SDK 的 React Native 模块,用于我的 RN 项目。
依赖项目会构建,但android应用不会构建。
在本机模块的 build.gradle 中,我有以下内容:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'src/main/libs'
}
}
}
在 android 应用的 build.gradle 中
dependencies {
implementation project(':react-native-vector-icons')
implementation project(':react-native-mymodule-sdk')
...
}
构建 Android 应用时出现错误:
Could not find :third-party-sdk-2.0:.
Searched in the following locations: file:/C:/[path to android project]/app/libs/third-party-sdk-2.0.aar
Required by:
project :app > project :react-native-mymodule-sdk
【问题讨论】:
标签: gradle android-gradle-plugin react-native-android