如何解决错误:未找到Gradle DSL方法:'compile()'?
开发过程中遇到错误:未找到Gradle DSL方法:'compile()'的问题如何解决?下面主要结合日常开发的经验,给出你关于错误:未找到Gradle DSL方法:'compile()'的解决方法建议,希望对你解决错误:未找到Gradle DSL方法:'compile()'有所启发或帮助;问题描述
我正在尝试使用yelp-fusion-android库。我尝试更新gradle,但没有运气。
我收到此错误:
ERROR: Gradle DSL method not found: 'compile()'
Possible causes:
The project 'testProject' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file
The build file may be missing a Gradle plugin.
Apply Gradle plugin
这是build.gradle:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.google.gms:google-services:4.3.2'
compile 'io.github.ranga543:yelp-fusion-client:0.1.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
尚未找到解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)