1. 程式人生 > >Error:(36, 0) Gradle DSL method not found: 'implementation()' Possible cause

Error:(36, 0) Gradle DSL method not found: 'implementation()' Possible cause

最近在引用庫檔案時使用了implementation這個引數,接下來就遇到編譯錯誤,原來使用這個引數需要Android 3.0.0,gradle版本必須在3.4以上
To use the DSL implementation() you have to use:

The updated gradle plugin for Android 3.0.0
The gradle version 3.4 or later

還有一種最簡單的辦法就是在build.gradle裡將implementation改為compile即可!