Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81978

Final apk contains unstripped libraries

    XMLWordPrintable

Details

    • Android
    • dd04fb639bf357e66d0586faed78a3043a62819e (qt/qtbase/5.14)

    Description

      When building the final apk (using Qt Creator or make apk), it complains about being unable to strip libraries:

       

      Unable to strip library '.../android-build/build/intermediates/merged_native_libs/debug/out/lib/arm64-v8a/libfirebird-emu_arm64-v8a.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
      Unable to strip library '.../android-build/build/intermediates/merged_native_libs/debug/out/lib/arm64-v8a/libqml_QtQuick_Extras_qtquickextrasplugin_arm64-v8a.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
      Unable to strip library '.../android-build/build/intermediates/merged_native_libs/debug/out/lib/arm64-v8a/libplugins_styles_qandroidstyle_arm64-v8a.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
      

       

      This is because the path to the NDK is not passed to gradle. Setting ANDROID_NDK_HOME before running make apk makes the apk significantly smaller.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            taipan BogDan Vatra
            vogtinator Fabian Vogt
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes