You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/02/04 19:12:44 UTC

[GitHub] [cordova-android] jmarshall-com edited a comment on issue #1391: Fix error message when installed build tools version greater than MIN_BUILD_TOOLS_VERSION + 1

jmarshall-com edited a comment on issue #1391:
URL: https://github.com/apache/cordova-android/issues/1391#issuecomment-1030267344


   I had this same problem and finally found the problem in `cordova.gradle`, line 57:
   
   `def maxVersion = new Version((minBuildToolsVersion.getMajor() + 1) + ".0.0")`
   
   ... and then line 62:
   
   `.findAll { it.isHigherThan('0.0.0') && it.isLowerThan(maxVersion) }`
   
   Is there a good reason for setting a `maxVersion` to be no more than 1 major version higher than `minversion`?  At a minimum, the error message should change to reflect what the highest allowed version is, not just say "version 30.0.3 or higher."  I spent a lot of time tracking this down.
   
   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 `maxVersion`.  (Build tools 30.0.3 is the only version supported by Android Studio that works here-- versions 31.x and 32.x lead to "Installed Build Tools revision X is corrupted."). Anyway, I uninstalled version 32 and installed 30.0.3 and it seems to work correctly now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org