-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error message when installed build tools version greater than MIN_BUILD_TOOLS_VERSION + 1 #1391
Comments
I had this same problem and finally found the problem in
... and then line 62:
Is there a good reason for setting a I'm using Cordova 11 with build tools 32, on a brand new Mac mini. Thanks! EDIT: Ah, I see that using any build tools above 30.0.3 won't work correctly, so there is indeed that good reason to have a |
In regards to the error message, it's definitely an oversight. It should be more descriptive. The code in question attempts to automatically find the latest version of build tools that is installed, but it should not automatically choose the next major version. Doing so is error prone as major version jumps generally indicate some sort of breaking change.
|
Gotcha, thanks. It's indeed working now with version 30.0.3 . |
This comment was marked as off-topic.
This comment was marked as off-topic.
…e clear what is actually required.
I've resolved this by rewording the the error message to something like:
I left it open ended so that the error message will ask for the minimum/recommended version that Cordova uses. Users can still install an alternate version for testing/if they know what they are doing using the preferences. |
…r what is actually required. (#1401)
…e clear what is actually required. (apache#1401)
Bug Report
Problem
I have build tools 32 installed. Compiling an android application using cordova-android 10.1.1 fails with the message:
This is clearly misleading and led me to waste a fair amount of time trying to track down the real problem
What is expected to happen?
Compilation should fail and display an error message indicating the required versions of build tools, something like
No usable build tools found. Android build tools version should be between 30.0.3 and 31.0.0.
What does actually happen?
Compilations fails with the message:
No installed build tools found. Install the Android build tools version 30.0.3 or higher.
Information
There are related issues about the compilation failing, but they don't address the problem of the misleading error message:
#1288
#1335
Command or Code
cordova compile android
Environment, Platform, Device
Windows 10.
Version information
Cordova cli 11.0.0
Cordova android 10.1.1
Checklist
The text was updated successfully, but these errors were encountered: