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:

    BUILD SUCCESSFUL in 10s
    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:

    Success
    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

    @bogong
    You have to actually sign your app or no "release" build will happen
    0_1557929636292_33d3b2b1-6ae6-45d9-b4a2-e025cd5fa6a1-image.png



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

    apk/release/android-build-release-signed.apk
    

  • Moderators

    @bogong
    mmh
    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

    @bogong

    0_1557931521154_7e549163-67fa-45a6-9798-922af214bfe9-image.png

    ;-)
    Happens to all of us.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.