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 2020/09/09 13:50:00 UTC

[GitHub] [cordova-android] aahlenst commented on pull request #928: Update check_reqs.js - allow JDK > 1.8

aahlenst commented on pull request #928:
URL: https://github.com/apache/cordova-android/pull/928#issuecomment-689576095


   To make things work:
   
   * You need the new commandlinetools, 6514223 or newer should work.   
   * You need to place the tool directory inside in `/opt/android/cmdline-tools` (when `/opt/android` is the SDK root).
   * You need to update the paths, especially `/opt/android/cmdline-tools/tools/bin` (when `/opt/android` is the SDK root) must come before everything else. This is because there are **2** sdkmanager binaries in the complete SDK and the old one in `tools/bin` does not work. It produces the stacktrace quoted above.
   
   Install instructions:
   
   ```
   $ unzip commandlinetools-linux-6514223_latest.zip 
   $ mkdir -p /opt/android/cmdline-tools
   $ mv tools /opt/android/cmdline-tools
   $ export PATH="/opt/android/cmdline-tools/tools/bin:$PATH"
   ```
   
   Then, use sdkmanager to install all required dependencies.
   
   PATH configuration:
   ```
   export PATH="/opt/android/tools:$PATH"
   export PATH="/opt/android/tools/bin:$PATH"
   export PATH="/opt/android/platform-tools:$PATH"
   export PATH="/opt/android/emulator:$PATH"
   export PATH="/opt/android/cmdline-tools/tools/bin:$PATH"
   
   export ANDROID_SDK_ROOT="/opt/android"
   ```


----------------------------------------------------------------
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.

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