Created
October 1, 2013 14:53
-
-
Save shakalaca/6779748 to your computer and use it in GitHub Desktop.
讓你的 android project 相容於 gradle 1.7 & 1.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
if (gradle.gradleVersion.startsWith("1.8")) { | |
classpath 'com.android.tools.build:gradle:0.6.0' | |
} else { | |
classpath 'com.android.tools.build:gradle:0.5.6' | |
} | |
} | |
} | |
task wrapper(type: Wrapper) { | |
gradleVersion = '1.7' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment