After the 0.14.0 android gradle plugin upgrade my project stopped building with an error: Build script error, unsupported Gradle DSL method found: 'renderscriptSupportMode(). After checking the release notes at http://tools.android.com/tech-docs/new-build-system I made the necessary below changes:
Renamed a few properties to make things more consistent.
BuildType.runProguard -> minifyEnabled
BuildType.zipAlign -> zipAlignEnabled
BuildType.jniDebugBuild -> jniDebuggable
BuildType.renderscriptDebug -> renderscriptDebuggable
ProductFlavor.renderscriptSupportMode -> renderscriptSupportModeEnabled
ProductFlavor.renderscriptNdkMode -> renderscriptNdkModeEnabled
After changing the above properties some of the errors went away, however I am still getting the bellow:
Could not find property 'zipAlignEnabled' on com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated
Has someone come across this error or let me know if I am missing something? Below is the snippet of the gradle.build that is causing the error.
if (variant.zipAlignEnabled) {
def file = variant.outputFile
def fileName = file.name.replace(".apk", "-" + majorCode + "." + minorCode + "." +miniCode + "-" +buildNumber+".apk")
variant.outputFile = new File(file.parent, fileName)
}