qt_android_deployment_dependencies
该属性在 Qt 6.0 中引入。
注意: 此属性为技术预览版,可能会在未来版本中更改。
注: 此属性仅在针对 Android 平台时使用。
默认情况下,androiddeployqt会检测应用程序的依赖关系。不过,由于无法检测插件的运行时使用情况,因此可能会出现误报,因为您的应用程序可能依赖于任何潜在依赖的插件。如果您想最小化APK
的大小,可以使用此属性覆盖自动检测。该属性应包含一个需要包含的所有 Qt 文件的列表,路径相对于 Qt 安装根目录。
注意: 只有通过此变量指定的 Qt 文件才会被包含。如果没有包含所有正确的文件,可能会导致崩溃。确保文件以正确的加载顺序列出也很重要。该变量提供了一种完全覆盖自动检测的方法,因此如果一个库被列在其依赖项之前,它将无法在某些设备上加载。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.