github.com/bitrise-steplib/steps-install-missing-android-tools
go get github.com/bitrise-steplib/steps-install-missing-android-tools

github.com/bitrise-steplib/steps-install-missing-android-tools

by bitrise-steplib

v0.0.0-20211104101740-e64ef81c943d (see all)License:MIT
go get github.com/bitrise-steplib/steps-install-missing-android-tools
Readme

Install missing Android SDK components

Step changelog

Install Android SDK components that are required for the app.

Description

This Step makes sure that the required Android SDK components (platforms and build-tools) are installed. To do so, the Step runs the gradlew dependencies command.

If the Android Plugin for Gradle version is 2.2.0 or higher, the plugin will automatically download and install the missing components during the Gradle command.
Otherwise the command will fail and the Step parses the command's output to determine which SDK components are missing and installs them.

Configuring the Step

  1. Set the path of the gradlew file.

    The default value is of the $PROJECT_LOCATION Environment Variable.

  2. If you use an Android NDK in your app, set its revision in the NDK Revision input.

Troubleshooting

If the Step fails, check that your repo actually contains a gradlew file. Without the Gradle wrapper, this Step won't work.

Installing an additional Android SDK package

🧩To Get started

Add this step directly to your workflow in the Bitrise Workflow Editor.

You could also run this step directly with Bitrise CLI.

⚙️ Configuration

Inputs
KeyDescriptionFlagsDefault
gradlew_pathUsing a Gradle Wrapper (gradlew) is required, as the wrapper is what makes sure that the right Gradle version is installed and used for the build. You can find more information about the Gradle Wrapper (gradlew), and about how you can generate one (if you would not have one already) in the official guide at: https://docs.gradle.org/current/userguide/gradle_wrapper.html. The path should be relative to the repository root, for example: ./gradlew, or if it's in a sub directory: ./sub/dir/gradlew.required$GRADLEW_PATH
ndk_versionNDK version to install, for example 23.0.7599858. Run sdkmanager --list on your machine to see all available versions. Leave this input empty if you are not using the Native Development Kit in your project.
Outputs There are no outputs defined in this step

🙋 Contributing

We welcome pull requests and issues against this repository.

For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.

Learn more about developing steps:

GitHub Stars

12

LAST COMMIT

7mos ago

MAINTAINERS

0

CONTRIBUTORS

21

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
v0.0.0-20211104101740-e64ef81c943d
7mos ago
v0.0.0-20210525105502-8e2a107ad73a
1yr ago
v0.0.0-20210401122055-b571860bb22c
1yr ago
No alternatives found
No tutorials found
Add a tutorial