在我的项目中,有一个模块需要依赖,该依赖关系位于bitbucket中。当我尝试构建它找不到依赖项。我在哪里错了?
错误:
Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-mqtt-iot'.
Could not resolve all dependencies for configuration ':react-native-mqtt- iot:_debugPublishCopy'.
Could not find co.ibhubs.ibchat:ibchat:0.0.1. Required by:project :react-native-mqtt-iot
build.gradle
文件
def computeVersionName() {
// dynamically retrieve version from package.json
def slurper = new JsonSlurper()
def json = slurper.parse(file('../package.json'), "utf-8")
return json.version
}
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
buildToolsVersion "27.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
// get version name from package.json version
versionName computeVersionName()
}
lintOptions {
abortOnError false
}
}
repositories {
maven { url "$rootDir/../node_modules/react-native/android" } // All of React Native (JS, Android binaries) is installed from npm
mavenCentral()
}
dependencies {
compile 'com.facebook.react:react-native:+'
compile('co.ibhubs.ibchat:ibchat:0.0.1') {
exclude group: 'org.apache.commons', module: 'commons-io'
}
compile files('libs/ib_chat-0.0.29.jar')
}