fix(GH-1391): Reword minimum build tools version to make it more clear what is actually required. (#1401)

This commit is contained in:
Norman Breau 2022-02-22 10:14:22 -04:00 committed by GitHub
parent f100809bf3
commit 6d3ce211dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,16 +64,16 @@ String doFindLatestInstalledBuildTools(String minBuildToolsVersionString) {
if (highestBuildToolsVersion == null) { if (highestBuildToolsVersion == null) {
throw new RuntimeException(""" throw new RuntimeException("""
No installed build tools found. Install the Android build tools No installed build tools found. Please install the Android build tools
version ${minBuildToolsVersionString} or higher. version ${minBuildToolsVersionString}.
""".replaceAll(/\s+/, ' ').trim()) """.replaceAll(/\s+/, ' ').trim())
} }
if (highestBuildToolsVersion.isLowerThan(minBuildToolsVersionString)) { if (highestBuildToolsVersion.isLowerThan(minBuildToolsVersionString)) {
throw new RuntimeException(""" throw new RuntimeException("""
No usable Android build tools found. Highest ${minBuildToolsVersion.getMajor()}.x installed version is No usable Android build tools found. Highest ${minBuildToolsVersion.getMajor()}.x installed version is
${highestBuildToolsVersion.getOriginalString()}; minimum version ${highestBuildToolsVersion.getOriginalString()}; Recommended version
required is ${minBuildToolsVersionString}. is ${minBuildToolsVersionString}.
""".replaceAll(/\s+/, ' ').trim()) """.replaceAll(/\s+/, ' ').trim())
} }