Gradle - 错误无法找到参数的方法实现()[com.android.support:appcompat-v7:26.0.0] [英] Gradle - Error Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0]
本文介绍了Gradle - 错误无法找到参数的方法实现()[com.android.support:appcompat-v7:26.0.0]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在android studio中打开现有的android项目并且gradle无法在没有错误的情况下构建应用程序
I am trying to open existing android project in android studio and it gradle cannot build the app without the error
错误android studio继续投掷
Error android studio keeps on throwing
Error:(74, 1) A problem occurred evaluating project ':app'.
> Could not find method implementation() for arguments
[com.android.support:appcompat-v7:26.0.0] on object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
build.gradle中的我的代码这有助于理解我的问题
我的依赖
My Code in build.gradle Which can help to understand my issue My dependencies
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
// google & support
implementation "com.android.support:appcompat-v7:$supportVersion"
implementation "com.android.support:cardview-v7:$supportVersion"
implementation "com.android.support:recyclerview-v7:$supportVersion"
implementation "com.android.support:design:$supportVersion"
implementation "com.android.support:palette-v7:$supportVersion"
implementation "com.android.support:customtabs:$supportVersion"
implementation "com.android.support:support-v4:$supportVersion"
implementation 'com.google.android.exoplayer:exoplayer:r2.0.4'
// utils
implementation 'com.github.bumptech.glide:glide:4.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
implementation 'com.koushikdutta.ion:ion:2.1.7'
implementation 'com.github.Commit451:bypasses:1.0.4'
implementation 'com.jakewharton:butterknife:8.8.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.0'
implementation 'com.drewnoakes:metadata-extractor:2.9.1'
implementation "com.orhanobut:hawk:2.0.1"
}
请帮助解决问题
推荐答案
替换编译
与实现
。
compile
最近已弃用并替换为 implementation
或 api
这篇关于Gradle - 错误无法找到参数的方法实现()[com.android.support:appcompat-v7:26.0.0]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文