Ich habe eine App und eine Android-Bibliothek in meiner Anwendung, in Entwicklung env möchte ich eine Abhängigkeit auf Projektebene bieten, dh Abhängigkeit in der (Projekt: XXX) build.gradle-Datei . Dies ist, wie mein Projektebene build.gradle aussieht (Teilansicht)Wie man eine Abhängigkeit auf Projektebene in Gradle hinzufügt
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
compile 'io.reactivex:rxandroid:1.1.0'
// Because RxAndroid releases are few and far between, it is recommended you also
// explicitly depend on RxJava's latest version for bug fixes and new features.
compile 'io.reactivex:rxjava:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
ich einen Fehler Gradle DSL method not found : compile()
bekommen.
Gibt es einen Weg in Androiden, um eine gemeinsame Projekt-Level-Abhängigkeit bereitzustellen.