【发布时间】:2017-04-11 01:09:09
【问题描述】:
我正在尝试集成最新版本的 quickblox sdk
我已将这些行添加到我的 gradle 文件中
repositories {
jcenter()
flatDir {
dirs 'libs'
}
maven {
url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
}
}
还加
сompile 'com.quickblox:quickblox-android-sdk-chat:3.3.1'
сompile 'com.quickblox:quickblox-android-sdk-content:3.3.1'
сompile 'com.quickblox:quickblox-android-sdk-messages:3.3.1'
现在尝试同步 gradle 文件时出现以下错误
Error:(151, 0) Gradle DSL method not found: 'сompile()'
Possible causes:<ul><li>The project 'app' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
<a href="fixGradleElements">Upgrade plugin to version 2.3.1 and sync project</a></li><li>The project 'app' may be using a version of Gradle that does not contain the method.
<a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
谁能告诉我这是什么问题?
【问题讨论】: