0
当我同步我的android studio项目时,得到 错误:(9,0)找不到方法编译()为参数[io.reactivex:rxandroid:1.2.1]上类型的对象org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler错误:(9,0)找不到方法compile()参数[io.reactivex:rxandroid:1.2.1]
我的build.gradle文件低于
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.9'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
当我添加这的build.gradle模块级别它被错误无法解析:io.reactivex:rxjava :1.1.9 –
@DipuKumar什么错误? –
错误(29,13)和错误(28,13):禁用离线模式和文件同步显示在项目结构对话框中显示 –