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

   Yah for context, the `$ANDROID_HOME/tools` is the old obsolete tools set. It 
requires Java 8 runtime to operate and is basically not compatible with modern 
tooling. Cordova shouldn't be trying to use it.
   
   `cmdline-tools` is the replacement, and the tools are versioned. The user 
environment may have multiple cmdline-tools installed at the same time. The 
user could also have a `"latest"` version installed in which a 
`$ANDROID_HOME/cmdline-tools/latest/...` path will exist, but that may include 
breaking changes. Namely in the JRE requirements to run the tools. They started 
at requiring JRE 11, and I believe the current versions require JRE 17.
   
   I feel like Cordova should start pinning a required cmdline-tools version, 
similar to what we do for build tools version. Then we can appropriately check 
for the `avdmanager` in the proper spot.
   
   Honestly if we do this, we can probably look into automating some stuff for 
the user, since we can then use `sdkmanager`. So instead of having the user 
using the SDK manager themselves to install the expected build tools version, 
and android platform, etc... Cordova could perhaps use the `SDK Manager` to 
install these packages for the user. I think the only requirement is that we do 
it in a way where the user explicitly accepts any license requirements if 
prompted. But anyway that's just a thought, and definitely out of scope of this 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to