Is there any way to stop Qt 5.9 from replacing values of versionCode and versionName in apk's AndroidManifest.xml?

198 Views Asked by At

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.

0

There are 0 best solutions below