Android Studio:gradle DSL method found: ' Android () '! and Gradle DSL method not found: ' Runproguard () ' Error

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.