[英]Gradle method not found:'compile' possible causes : The Project
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:design:24.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
i'm trying to add compile method to build.gradle but i get this problem i have android studio 3.5.2我正在尝试将 compile 方法添加到 build.gradle 但我遇到了这个问题我有 android studio 3.5.2
and 5.4.1 gradle和 5.4.1 gradle
You can replace compile
with implementation
:您可以用
implementation
替换compile
:
implementation 'com.android.support:appcompat-v7:24.1.1'
implementation 'com.android.support:design:24.1.1'
But you are putting your dependencies in your build.gradle
module Project.但是您将依赖项放在
build.gradle
模块项目中。 Place them in build.gradle
module app.将它们放在
build.gradle
模块应用程序中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.