Add external libraries to Android packages

Qt Creator automatically detects which Qt libraries an application uses and adds them as dependencies.

To copy external libraries into the application's library folder and load them on startup:

  1. Go to Projects > Build Settings > Build Android APK, and select Details.

    Build Android APK step in the Build Settings tab in Projects

  2. In Additional Libraries, select the libraries to add.

Add OpenSSL libraries

To add OpenSSL libraries, select Include prebuilt OpenSSL libraries in the Additional Libraries group.

This adds the OpenSSL include project that you specify in Preferences > SDKs > Android OpenSSL Settings. This works for both qmake and CMake projects.

Android tab in SDKs preferences

You can also manually add the paths to the required libssl.so and libcrypto.so libraries to the Additional Libraries field.

See also How to: Develop for Android and Developing for Android.