Error:(1, 0) Gradle DSL method not found: ‘apply()’
Possible causes:
- The project ‘项目名称’ may be using a version of the Android Gradle plug-in that does not contain the method (e.g. ‘testCompile’ was added in 1.1.0).
Upgrade plugin to version 2.3.3 and sync project - The project ‘项目名称’ may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file - The build file may be missing a Gradle plugin.
Apply Gradle plugin