Module Android.sdk

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.

Android.sdk Properties

These properties are set automatically when creating an Android profile via the setup-android tool.

PropertyTypeSinceDefaultDescription
buildToolsVersionstring1.4undefinedThe version of the build tools such as aapt and dx. The setup-android tool sets this to the highest version available in the SDK.
ndkDirstring1.4undefinedThe NDK base directory, if an NDK is present.
platformstring1.4undefinedThe versioned platform name (e.g. "android-21"). The setup-android tool sets this to the highest version available in the SDK.
sdkDirstring1.4undefinedThe SDK base directory.

Relevant File Tags

TagAuto-tagged File NamesSinceDescription
"android.aidl"*.aidl1.4.0This tag is used for Android AIDL files. One Java source file will be generated for each such file.
"android.assets"-1.4.0This tag is used for 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/a1.4.0This tag is 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.xml1.4.0This tag is used for the Android manifest. There must be one such file for every Android app.
"android.resources"-1.4.0This tag is used for Android resources, which are typically located in a res/ subdirectory. Using the AndroidApk item takes care of tagging these files for you.