Skip to content

get-android-sdk

Automatically generated README for this automation recipe: get-android-sdk

Category: Detection or installation of tools and artifacts

License: Apache 2.0

  • Notes from the authors, contributors and users: README-extra

  • CM meta description for this script: _cm.json

  • Output cached? True

Reuse this script in your project

Install MLCommons CM automation meta-framework

Pull CM repository with this automation recipe (CM script)

cm pull repo mlcommons@cm4mlops

cmr "get android sdk android-sdk" --help

Run this script

Run this script via CLI
cm run script --tags=get,android,sdk,android-sdk [--input_flags]
Run this script via CLI (alternative)
cmr "get android sdk android-sdk " [--input_flags]
Run this script from Python
import cmind

r = cmind.access({'action':'run'
              'automation':'script',
              'tags':'get,android,sdk,android-sdk'
              'out':'con',
              ...
              (other input keys for this script)
              ...
             })

if r['return']>0:
    print (r['error'])
Run this script via Docker (beta)
cm docker script "get android sdk android-sdk" [--input_flags]

Script flags mapped to environment

  • --android_cmake_version=valueCM_ANDROID_CMAKE_VERSION=value
  • --android_ndk_version=valueCM_ANDROID_NDK_VERSION=value
  • --android_version=valueCM_ANDROID_VERSION=value
  • --build_tools_version=valueCM_ANDROID_BUILD_TOOLS_VERSION=value
  • --cmdline_tools_version=valueCM_ANDROID_CMDLINE_TOOLS_VERSION=value

Default environment

These keys can be updated via --env.KEY=VALUE or env dictionary in @input.json or using script flags.

  • CM_ANDROID_BUILD_TOOLS_VERSION: 29.0.3
  • CM_ANDROID_CMAKE_VERSION: 3.6.4111459
  • CM_ANDROID_CMDLINE_TOOLS_URL: https://dl.google.com/android/repository/commandlinetools-${CM_ANDROID_CMDLINE_TOOLS_OS}-${CM_ANDROID_CMDLINE_TOOLS_VERSION}_latest.zip
  • CM_ANDROID_CMDLINE_TOOLS_VERSION: 9123335
  • CM_ANDROID_NDK_VERSION: 21.3.6528147
  • CM_ANDROID_VERSION: 30

Script output

cmr "get android sdk android-sdk " [--input_flags] -j