- Qt 6.11
- Qt Core
- CMake Variables in Qt6 Core
- QT_ANDROID_POST_BUILD_GRADLE_CLEANUP
- Qt 6.11.1 Reference Documentation

# QT_ANDROID_POST_BUILD_GRADLE_CLEANUP

Perform a Gradle cleanup after the Android package is created.

This variable was introduced in Qt 6.11.

Note: This variable is in technology preview and may change in future releases.

Note: This variable is used only if targeting the Android platform.

After the Android package build is done and the APK is created, perform a Gradle clean task to remove build artifacts. This is useful to keep disk space taken by Qt for Android projects at a minimal.

See also qt_android_generate_deployment_settings().