Qbs Manual

Qbs 1.12.0

# Android.sdk QML Type

Provides support for building Android packages. More...

Import Statement: | import QbsModules .
Since: | Qbs 1.4

- List of all members, including inherited members

## Properties

- buildToolsVersion : string
- embedJar : bool
- ndkDir : string
- platform : string
- sdkDir : string

## Detailed Description

The Android.sdk module contains the properties and rules to create Android application packages from Java sources, resources, and so on.

Normally, you will not use this module directly, but instead work with the AndroidApk item that Qbs provides.

### Relevant File Tags

Tag | Auto-tagged File Names | Since | Description
--- | --- | --- | ---
`"android.aidl"` | `*.aidl` | 1.4.0 | Attached to Android AIDL files. One Java source file will be generated for each such file.
`"android.assets"` | - | 1.4.0 | Attached to Android assets, which are typically located in an `assets/` subdirectory. Using the AndroidApk item takes care of tagging these files for you.
`"android.apk"` | n/a | 1.4.0 | Attached to the output artifact of the rule that creates an APK package. It is the default type of the AndroidApk item.
`"android.manifest"` | `AndroidManifest.xml` | 1.4.0 | Attached to the Android manifest. There must be one such file for every Android app.
`"android.resources"` | - | 1.4.0 | Attached to Android resources, which are typically located in a `res/` subdirectory. Using the AndroidApk item takes care of tagging these files for you.

## Property Documentation

buildToolsVersion : string

The version of the build tools such as `aapt` and `dx`.

Default: Highest build tools version version available in the SDK.

embedJar : bool

If `true`, then if the dependency is a JAR file, its classes and the classes of its dependencies (if `embedJar` is also true for them) will be recursively processed by `dex` and included in the final APK.

Default: `true`

This QML property was introduced in Qbs 1.10.

ndkDir : string

The NDK base directory, if an NDK is present.

Default: Determined automatically based on standard search paths.

platform : string

The versioned platform name (for example, `"android-21"`).

Default: Highest build tools version version available in the SDK.

sdkDir : string

The SDK base directory.

Default: Determined automatically based on standard search paths.