einrichten alle! Ich bin neu in Android, und ich habe den Tag verschwendet, auf der Suche nach einer Lösung. Ich habe Quickblox GCM meiner app, und als ich versuchte, Projekte zu bauen, Gradle sagt:Gradle "Konnte die Methode" sompile() nach Argumenten nicht finden ", Quickblox
Error:(71, 1) A problem occurred evaluating project ':app'. Could not find method сompile() for arguments [com.quickblox:quickblox-android-sdk-chat:3.3.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Das ist meine app/gradle.build:
> buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
//Crashlytics
maven { url 'https://maven.fabric.io/public'
}
//Mockito
jcenter()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
//Crashlytics
compile ('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
// Retrofit
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
//RxAndroid
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.6'
//Quickblox
сompile "com.quickblox:quickblox-android-sdk-chat:$rootProject.qbSdkVersion"
сompile "com.quickblox:quickblox-android-sdk-messages:$rootProject.qbSdkVersion"
Und das ist root gradle.build :
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
}
}
}
ext {
qbSdkVersion = '3.3.0'
}
ich das alles hat, aufgrund Anweisung auf http://quickblox.com/developers/Android#How_to:_add_SDK_to_IDE_and_connect_to_the_cloud
Heiligen ....! Ich habe viele Wege ausprobiert, aber nicht diesen. Vielen Dank! Du bist unglaublich! – Koroqe
Nicht wirklich, nur hinzugefügt, was der Dokumentationslink, den Sie geteilt haben, gesagt hat! ;) –
Aber in ihrer Repo zeigte neuestes Code Beispiel: 'def qbSdkVersion = '3.3.0' Abhängigkeiten { // сompile "com.quickblox: quickblox-android-sdk-Chat: $ qbSdkVersion"' – Koroqe