Gradle DSL method not found: ' Runproguard () ' Error
This error occurs because in the new version of Gradle, the Runproguard () method has been discarded and replaced by minifyenabled, So just change the runproguard in the Build.gradlew file under each module to minifyemabled. Such as:
Gradle DSL method found: ' Android () ' Error
As with the last error, this is also because the Android () method has been deprecated in the new version of Gradle, but be aware that Android () It is only discarded in the Build.gradle file under the entire project and still exists in the Build.gradle file under each module. So just remove Android () from the Build.gradle file under the project.
For details, see http://stackoverflow.com/questions/23409384/ Android-studio-build-script-error-unsupported-gradle-dsl-method-found-andro
Also attached is a very useful website where you can see the new features and syntax changes of Android studio and Gradle after each update.
http://tools.android.com/
Android Studio:gradle DSL method found: ' Android () '! and Gradle DSL method not found: ' Runproguard () ' Error