Important: Please read the Qt Code of Conduct -

Qt Creator on MacOS: do not building release for Android. Why?

  • Hello all!

    After update of Qt Creator got this issue: do not build release for Android x86 (ignored release and build debug even if chosen release ) and do not open directory with (it's working only if chosen debug). It's happening only if I am choosing "release" on debug everything OK.

    In "release" it's ignoring settings of Qt Creator.

    1_1557920492929_Screenshot 2019-05-15 at 14.37.23.png

    0_1557920646688_Screenshot 2019-05-15 at 14.37.14.png

    How to fix it?

  • At time of building I have this message:

    29 actionable tasks: 29 executed
    Android package built successfully in 12.929 ms.
      -- File: /Users/alexandr/Projects/Build/Android_for_x86_Clang_Qt_5_12_3_for_Android_x86-Release/android-build//build/outputs/apk/debug/android-build-debug.apk

    It's building "release" but not switching off the building of "debug" in *.apk
    Why it's might be?

    There are everywhere switched off "debug".

    0_1557928088682_Screenshot 2019-05-15 at 16.47.35.png

    When I am trying to "Run" application, but not only "Build" it's building released *.apk and I have this message:

    Android package built successfully in 2.364 ms.
      -- It can now be run from the selected device/emulator.
      -- File: /Users/alexandr/Projects/Build/Android_for_x86_Clang_Qt_5_12_3_for_Android_x86-Release/android-build//build/outputs/apk/release/android-build-release-signed.apk

  • Moderators

    You have to actually sign your app or no "release" build will happen

  • It's signed. Last log example showing it ...


  • Moderators

    so build&run works, but build only results in a "debug" app file?

    Can you delete the shadow build folder and double check?

  • @J.Hilk Yes. It's building only "debug" if I am only building. When I am using "Run" instead of build - it's building "release". Already been deleting and cleaning ...

  • Just cleared all cache of Qt Creator (~/Library/ and other directories), reconfigure project from scratch and deleted everything related to to the building. Deleted *.pro.user file and set it up again. Started working. I don't know what was it ...

  • Moderators



    Happens to all of us.

  • @J.Hilk This f-wording ghost sometimes switching me into WTF-mode ... :-)

Log in to reply