Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

update buildToolsVersion #181

Open
jacintoface opened this issue Dec 28, 2018 · 0 comments
Open

update buildToolsVersion #181

jacintoface opened this issue Dec 28, 2018 · 0 comments

Comments

@jacintoface
Copy link

Can you change several parameters such as buildToolsVersion to read from the configuration file of the project root directory? Now I have encountered a problem with the buildToolsVersion version conflict.

Like this function in build.gradle:
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

usage:
compileSdkVersion safeExtGet('compileSdkVersion', 26)
buildToolsVersion safeExtGet('buildToolsVersion', '26.0.2')

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant