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

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'**
}
發佈了33 篇原創文章 · 獲贊 19 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章