Ошибка сборки Android gradle "Не удалось найти <dependency>" - PullRequest
0 голосов
/ 23 октября 2019

В моем проекте есть модуль, который требует зависимости, которая находится в 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')
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...