无法解决:com.quickblox:quickblox-android-sdk-chat:2.6.1

时间:2016-08-23 04:49:19

标签: quickblox quickblox-android

我按照快速blox给出的指示如下:

从sdk 2.6.1开始添加对特定模块的依赖只需添加:

Fail to resolve: com.quickblox:quickblox-android-sdk-chat:2.6.1

SDK模块自动包含传递模块依赖项。

但是,我无法同步gradle文件,因为它显示错误:

[snmp] # set to 1 to enable SNMP trap sending enabled=1 # Levels can be a comma-delimited list of any of the following: # DEBUG,INFO,WARN,ERROR,CRITICAL,ALERT # If the left is empty, OpsCenter will listen for all levels. levels=ALERT # Comma-delimited list of cluster names for which # this alert config will be eligible to run. # If left empty, this alert will be called for events on all clusters. clusters= # SNMP engine ID, specified by rfc3411 and rfc5343. # See http://tools.ietf.org/html/rfc3411#section-5 # SnmpEngineID definition for more information. # # 32 octet (max length) unique hex engine ID. Must not be all zeroes or all # 255's. The first four octets specify the enterprise ID, left filled # with zeroes and starting with an 8. The fifth octet specifies a format scheme # that specifies the nature of the remaining octets. The remaining octets # are given in accordance with the specified format. # # Format Schemes: # 1 -- IPv4 Address scheme # 2 -- IPv6 Address scheme # 3 -- MAC Address scheme # 4 -- Text Address scheme # 5 -- Octets scheme # # Default scheme is octets scheme; if nothing else, you should change # 01020304 to a unique octet string. #engine_id=80:00:00:00:05:01:02:03:04 # IPv4 address of the SNMP target. target_ip=*.*.*.* ( commented due to security urpose ) # Port to direct traps to on the SNMP target. target_port=162 # Set to 1 to use SNMPv3 and the user/privacy key/auth key model. Set to 0 to # use SNMPv1/community model. use_snmpv3=0 # SNMPv1/2 community name (for community security model) community_name=public # SNMPv3 username #user=opscusername # SNMPv3 authentication protocol # Options: # MD5 -- MD5-based authentication protocol # SHA -- SHA-based authentication protocol # NoAuth -- no authentication to use #auth_protocol=SHA # SNMPv3 authentication key #auth_key=authkey1 # SNMPv3 privacy protocol # Options: # DES -- DES-based encryption protocol # AES -- AES128-based encryption protocol (RFC3826) # 3DES -- triple DES-based encryption protocol (Extended Security Options) # AES192 -- AES192-based encryption protocol (Extended Security Options) # AES256 -- AES256-based encryption protocol (Extended Security Options) # NoPriv-- no encryption to use #privacy_protocol=AES # SNMPv3 privacy key #privacy_key=privkey1

请帮助我,我无法使用最新版本启动快速blox。

3 个答案:

答案 0 :(得分:13)

我遇到了同样的问题。但在搜索了SO一天后,我设法解决了它。

对我来说,在gradle中将以下行替换为allprojects而不是buildscript

maven {
        url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
    }

奇怪的是,您必须在应用程序级别(顶级)build.gradle文件中包含此引用。

答案 1 :(得分:4)

应用程序级别(顶级)的build.gradle文件中的sdk存储库

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
        }
    }
}

答案 2 :(得分:1)

正确的解决方案:将存储库添加到同一个build.gradle文件中:

repositories {
    maven {
        url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
    }
}
dependencies {
    compile 'com.quickblox:quickblox-android-sdk-chat:2.6.1'
}