{"id":23112729,"url":"https://github.com/amyu/setup-android","last_synced_at":"2025-08-16T19:31:22.975Z","repository":{"id":42735736,"uuid":"459102884","full_name":"amyu/setup-android","owner":"amyu","description":"Setup Android SDK for self hosted runner","archived":false,"fork":false,"pushed_at":"2024-04-12T15:49:02.000Z","size":4432,"stargazers_count":36,"open_issues_count":4,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-12T17:52:06.683Z","etag":null,"topics":["android","github-actions","self-hosted-runner","setup","setup-android"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-02-14T09:51:30.000Z","updated_at":"2024-04-14T17:42:42.699Z","dependencies_parsed_at":"2024-01-15T21:32:25.401Z","dependency_job_id":"4634d493-c15b-4452-9e2e-6902f4a7c32e","html_url":"https://github.com/amyu/setup-android","commit_stats":{"total_commits":70,"total_committers":5,"mean_commits":14.0,"dds":0.4,"last_synced_commit":"9bed66b76e002fbd8956bc4e3d1489c5d48da232"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amyu%2Fsetup-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amyu%2Fsetup-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amyu%2Fsetup-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amyu%2Fsetup-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amyu","download_url":"https://codeload.github.com/amyu/setup-android/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230051387,"owners_count":18165219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","github-actions","self-hosted-runner","setup","setup-android"],"created_at":"2024-12-17T02:20:17.884Z","updated_at":"2025-08-16T19:31:22.939Z","avatar_url":"https://github.com/amyu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-android\n\nThis action provides the following functionality for GitHub Actions users:\n\n- Optionally downloading and caching distribution of the requested sdk version or build tools version or ndk,cmake version, and adding it to the PATH\n- Runs on Mac, Linux and Windows powered by SelfHostedRunner\n\n# Motivation\n\nThis Action is provided for SelfHostedRunner.  \nGithubHostedRunner does not need this Action as it already has the SDK set up.\n\n# Usage\n\nSee [action.yml](action.yml)\n\n**Basic:**\n\n```yaml\nsteps:\n  - uses: actions/checkout@v4\n  - name: Setup JDK 17\n    uses: actions/setup-java@v3\n    with:\n      java-version: 17\n      distribution: temurin\n\n  - name: Setup Android SDK\n    uses: amyu/setup-android@v4\n\n  - run: ./gradlew build --stacktrace\n```\n\n**Recommend:**\n\nIf your project uses VersionCatalog, the following settings are recommended\n\n```yaml\n- name: \"Get sdkVersion from versions.toml\"\n  id: read_version\n  shell: bash\n  run: |\n    version=`perl -nlE 'say if s/compileSdkVersion \\= \\\"(.*)\\\"/$1/g' gradle/libs.versions.toml`\n    echo \"sdkVersion=$version\" \u003e\u003e $GITHUB_OUTPUT\n\n- name: Setup Android SDK\n  uses: amyu/setup-android@v4\n  with:\n    sdk-version: ${{ steps.read_version.outputs.sdkVersion }}\n```\n\n**More Information:**\n\n```yaml\n  - name: Setup Android SDK\n    uses: amyu/setup-android@v4\n    with:\n      # default: false\n      # Whether to use the cache\n      cache-disabled: true\n\n      # default: `${sdkVersion}-${buildToolsVersion}-${ndkVersion}-${cmakeVersion}-${hashedCacheDirectory}-v4`\n      # Custom key for cache. It is invalid when `cache-disabled: true`\n      cache-key: 'custom-cache-key'\n\n      # default: 34\n      # sdk version\n      # see https://developer.android.com/studio/releases/platforms\n      # It will always be installed.\n      sdk-version: 34\n      # or\n      sdk-version: |\n        33\n        34\n\n      # default: 33.0.2\n      # build tools version\n      # see https://developer.android.com/studio/releases/build-tools\n      # It will always be installed.\n      build-tools-version: 33.0.2\n\n      # default: ''\n      # cmake version\n      # see https://developer.android.com/studio/projects/install-ndk\n      # Installed when the version is specified\n      cmake-version: 3.10.2.4988404\n\n      # default: ''\n      # cmake version\n      # see https://developer.android.com/studio/projects/install-ndk\n      # Installed when the version is specified\n      ndk-version: 23.1.7779620\n\n      # default: true\n      # Whether to generate or not the job summary\n      generate-job-summary: false\n```\n\n**Install Beta SDK:**\n\nSet sdk-version to the value written in API Level from SDK Manager  \n![](./screenshots/information_for_install_beta_sdk.png)\n\n```yaml\n- name: Setup Android SDK\n  uses: amyu/setup-android@v4\n  with:\n    sdk-version: VanillaIceCream\n```\n\n# License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE)\n\n# Contributions\n\nContributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famyu%2Fsetup-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famyu%2Fsetup-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famyu%2Fsetup-android/lists"}