A/Android

Android Studio Migrating Gradle Projects to version 1.0.0

안뇽헬로 2014. 12. 22. 01:08

Gradle 업뎃하면서 쓰임새의 변화가 어느정도 생겼다.


참고 : http://tools.android.com/tech-docs/new-build-system/migrating-to-1-0-0


There are some additional other properties that were renamed as well, in both build types and product flavors.

ApplicationId in Library Projects

You cannot use applicationId to customize the package of a library project. The package name has to be fixed in library projects (and specified as packageName in the manifest). The Gradle plugin did not enforce this restriction earlier.

Renamed Properties in BuildTypes

runProguard => minifyEnabled
zipAlign => zipAlignEnabled
jniDebugBuild => jniDebuggable
renderscriptDebug => renderscriptDebuggable

Renamed Properties in ProductFlavors

flavorGroups => flavorDimensions
packageName => applicationId
testPackageName => testApplicationId
renderscriptSupportMode => renderscriptSupportModeEnabled
ProductFlavor.renderscriptNdkMode => renderscriptNdkModeEnabled