mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
fix(GH-1391): Reword minimum build tools version to make it more clear what is actually required. (#1401)
This commit is contained in:
parent
f100809bf3
commit
6d3ce211dd
@ -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())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user