0

Values of platformBuildVersionCode (versionCode) and platformBuildVersionName (versionName) are always replaced with the values of targetSDKVersion and targetSDK in apk's AndroidManifest file.

I have tried below ways.

  1. Modified these fields from build.gradle

  2. Tried to build from terminal and changed value of these fields from terminal.

  3. https://forum.qt.io/topic/52250/how-can-i-stop-qtcreator-from-overwriting-my-androidmanifest-xml

  4. This issue is seen only for Qt 5.9. I tested on Qt 5.9.4 and Qt 5.9.8. Works perfectly fine on Qt 5.12.2.

Ref: https://android.googlesource.com/platform/frameworks/base/+/ad2d07d

What's platformBuildVersionCode and platformBuildVersionName in Extracted Apk's

These options are not working for me. I want to keep these values as it is in apk's manifest also with Qt 5.9.8.

  • It is not an answer, just some food for thought. Qt 5.9 support will end in 5 months (May 2020). At this point you will have 2 other LTS versions of Qt (5.12 and 5.15). If you cannot find a quick and easy solution for your problem, since you will likely have to move from Qt 5.9 in the near future, it might be worth moving to a newer Qt version that does not have this problem. – Benjamin T Jan 24 '20 at 09:59
  • Thank you for your comment. I can not go with Qt 5.12 as it is having some different issues which is not acceptable for me. Waiting for next LTS i.e. Qt 5.15. – SoftwareDeveloper Jan 24 '20 at 11:06
  • Do you have any idea when next LTS version is planned by Qt? – SoftwareDeveloper Jan 24 '20 at 11:07
  • Qt 5.15 is scheduled for May 2020. See https://wiki.qt.io/Qt_5.15_Release You can also check the Releasing mailing list, there is a recap of the current state weekly: https://lists.qt-project.org/pipermail/releasing/ – Benjamin T Jan 24 '20 at 12:42
  • Thank you so much for sharing this useful information. It will help me to make a decision. – SoftwareDeveloper Jan 24 '20 at 13:23
  • Just a quick note. The Qt Company will stop making LTS releases for the open source edition: https://www.qt.io/blog/qt-offering-changes-2020 – Benjamin T Jan 27 '20 at 20:48

0 Answers0