简体   繁体   中英

Android Studio “Error:Build script error, unsupported Gradle DSL method found: > 'getProguard()'!” after upgrading

I just upgraded my Android Studio preview release to the latest beta 0.8.3 and my gradle build script which was working perfectly fine until now fails with this:

Error:Build script error, unsupported Gradle DSL method found: 'getProguard()'!

Running the script in the command line with --stacktrace gives me:

Caused by: org.gradle.api.internal.MissingMethodException: Could not find method getProguard() for arguments [] on com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated@21939397.

As far as I know, I don't even have a ProGuard task configured for this project.

Android Studio is set to use the default gradle wrapper and querying the version shows I'm using gradle version 1.10.

Be aware that Studio 0.8.3 is a canary release , and bugs are to be expected .

Since updating to 0.8.3 seems to be the change that broke your build, I can only suggest that you file a bug report to the dev team and then downgrade and/or reinstall a more stable release .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM