breautek commented on issue #1288:
URL: 
https://github.com/apache/cordova-android/issues/1288#issuecomment-885606552


   > @breautek am I right that none of these options will work and there is no 
way to pin the build-tools version?
   
   Correct, and further investigation on the "why" identifies another bug.
   
   The desired build tools get set here:
   
   
https://github.com/apache/cordova-android/blob/0ce66249dafc916c5c2197d4c92cc51b555f777b/templates/project/app/build.gradle#L192
   
   `LATEST_INSTALLED_BUILD_TOOLS` gets set by:
   
   
https://github.com/apache/cordova-android/blob/0ce66249dafc916c5c2197d4c92cc51b555f777b/framework/cordova.gradle#L175-L177
   
   Where `BUILD_TOOLS_VERSION` is comes from the config shown in your docs 
screenshot. As the `doFindLatestInstalledBuildTools` function name might 
suggest, it finds the latest build tools version, with the parameter being the 
"minimum" required version.
   
   In fact, this behaviour did change as cordova-android 9.1 did:
   
   
https://github.com/apache/cordova-android/blob/c9108d8479641b92b1694b48237830ebbe6a6444/bin/templates/project/app/build.gradle#L164-L167
   
   And only used `findLatestInstalledBuildTools` if the user parameter wasn't 
specified. I do believe this wasn't intentional and this issue probably should 
be reported as a separate issue.


-- 
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-unsubscr...@cordova.apache.org

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



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

Reply via email to