Android Studio version 1.0.0 Released
Much waited Android studio V1 is out. Well, if you are android dev, and do android as your day job, you should not be excited about this release much because , we know how quick is google when it comes to AS releases.
I am happy now the AS is out of BETA. Now I expect google to be responsible as not to ship buggy versions anymore. Thanks Google for taking AS out from Beta.
While this post is about AS 1 release, this is particularly about a FIX you need to do to your Gradle builds to get the new version up and running. If you use following properites in your build file, you might have a tough time figuring out why your builds are failing with this new shiny production ready AS.
OK, lets cut to the chase.
If you get one of these errors,
- Gradle DSL method not found: ‘runProguard()‘
- Gradle DSL method not found: ‘zipAlign()‘
- Gradle DSL method not found: ‘jniDebugBuild()‘
- Gradle DSL method not found: ‘renderscriptDebug()‘
You should change those property names to these new ones,
- BuildType.runProguard -> minifyEnabled
- BuildType.zipAlign -> zipAlignEnabled
- BuildType.jniDebugBuild -> jniDebuggable
- BuildType.renderscriptDebug -> renderscriptDebuggable
Find more changes below,
http://tools.android.com/tech-docs/new-build-system
Lesson learned,
Don‘t update AS, without looking at release notes as new releases may not be backward compatible.