【发布时间】:2019-05-25 02:19:43
【问题描述】:
我明白了:
在 org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler 类型的对象上找不到参数 [com.github.user:test:master] 的方法 implementation()。
我也尝试过compile,但出现同样的找不到方法compile()错误。
// Top-level build file where you can add configuration options
common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
compile 'com.github.test:user:master'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
【问题讨论】:
标签: gradle