My project at run time, there was a gradle version of the error, I tried a lot of ways are not resolved, we have not encountered a similar error, the following is the error log.
Error:(1, 0) Gradle DSL method not found: 'apply()' Possible causes:The project 'xindatx1.6.0' 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). Fix plugin version and sync projectThe project 'xindatx1.6.0' may be using a version of Gradle that does not contain the method. Open Gradle wrapper fileThe build file may be missing a Gradle plugin. Apply Gradle plugin
- The project 'xindatx1.6.0' 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).
Fix plugin version and sync project
- The project 'xindatx1.6.0' 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
– shuwang Jun 12 '16 at 06:04