Fixed:
WARNING [Project: :app] packageName is deprecated (and will soon stop working); change to applicationId instead
WARNING [Project: :app] testPackageName is deprecated (and will soon stop working); change to testApplicationId instead
WARNING [Project: :lib] packageName is deprecated (and will soon stop working); change to applicationId instead
Fixed:
android.sourceSets.main.allSource
has been changed to android.sourceSets.main.java.srcDirs
see:  https://code.google.com/p/android/issues/detail?id=71174
Updated: classpath 'com.android.tools.build:gradle:0.12.2'
Updated: TARGET_SDK_VERSION=20
COMPILE_SDK_VERSION=20
BUILD_TOOLS_VERSION=20