Skip to content

Instantly share code, notes, and snippets.

@matnogaj
Created June 12, 2017 08:40
Show Gist options
  • Save matnogaj/73c8afc6d4c330a6c2276f78a43292b4 to your computer and use it in GitHub Desktop.
Save matnogaj/73c8afc6d4c330a6c2276f78a43292b4 to your computer and use it in GitHub Desktop.
build.gradle fix for different sdk versions
allprojects { project ->
afterEvaluate {
if((project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion myCompileSdkVersion as Integer
buildToolsVersion myBuildToolsVersion
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment