У меня есть приложение и библиотека андроида в моем приложении, в разработке env я хотел бы предоставить зависимость от уровня проекта, т. Е. Зависимость в файле build2radle (Project: XXX). , Это как мой проект уровня build.gradle выглядит (частичный вид)как добавить зависимость уровня проекта в gradle
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
}
}
Я получаю сообщение об ошибке Gradle DSL method not found : compile()
.
Есть ли способ в android, чтобы обеспечить общую зависимость уровня проекта.