Android Studio 升级到 1.0后 有几个配置的字段改了。
Android Studio version 1.0.0 Released
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()‘
- 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.
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。