为 Android 软件包添加外部库
Qt Creator 自动检测应用程序使用的 Qt 库,并将它们添加为依赖库。
要将外部库复制到应用程序的库文件夹中,并在启动时加载它们:
- 转到Projects >Build Settings >Build Android APK ,然后选择Details 。

- 在Additional Libraries 中,选择要添加的库。
添加 OpenSSL 库
要添加 OpenSSL 库,请在Additional Libraries 组中选择Include prebuilt OpenSSL libraries 。
这将添加在Preferences >SDKs >Android OpenSSL Settings 中指定的 OpenSSL include 项目。这对 qmake 和 CMake 项目都有效。

您也可以在Additional Libraries 字段中手动添加所需libssl.so 和libcrypto.so 库的路径。
另请参阅 如何:为 Android 开发》和《为 Android 开发》。
Copyright © The Qt Company Ltd. and other contributors. 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.