Error:(4, 0) Gradle DSL method not found: 'classpath()' Possible causes: The project 'workspace-64'

来源:互联网 发布:topcoder算法 编辑:程序博客网 时间:2024/06/06 04:35

Error:(4, 0) Gradle DSL method not found: 'classpath()'
Possible causes: The project 'workspace-64' may be using a version of Gradle that does not contain the method.open Gradle settings
The build file may be missing a Gradle plugin.
apply.gradle.plugin Apply Gradle plugin

这里写图片描述

解决办法:
删除gradle里面的classpath

dependencies {    compile fileTree(dir: 'libs', include: '*.jar')    **classpath 'com.android.tools.build:gradle:2.1.2'**}
1 0
原创粉丝点击