Hi,
I’m trying to build an Android version of my app with Cloud Builds. My app includes a little game in a NavigationStack (GameWindowItem). I’m having issues regarding licenses.
Here’s what I’ve done:
1. Generate License Key with version code: 1
2. Add (the same) license key to: project.pro, Main.qml and my GameWindowItem
3. In project.pro, set
PRODUCT_VERSION_NAME = 1.0.0
PRODUCT_VERSION_CODE = 1
4. In AndroidManifest.xml, set
android:versionName=„1.0.0“ android:versionCode=„1“
5. In config.json,set
“versioncode”: 1,
“versionname”: „1.0.0“,
“stage”: “publish”
6. Clean project
7. Push to my git-repo and build. I also tried different build configurations:
a) Build Configuration: Overwrite Version Name: 1.0.0, Overwrite Version Code: 1, Update License key: unchecked
b) Build Configuration: Overwrite Version Name: empty, Overwrite Version Code: empty, Update License key: unchecked
c) Build Configuration: Overwrite Version Name: 1.0.0, Overwrite Version Code: 1, Update License key: checked
For all I got the same results.
Result:
ARMv7 apk -> App works fine, for the game I get „This license key is invalid. Do you want to request a new licenseKey now? Invalid license reason: “
ARMv8 apk -> As soon as the app is started I get „This license key is invalid. Do you want to request a new licenseKey now? Invalid license reason appVersionCodeDoesntMatch“. The game works as intended, with no license key warning.
When I looked into the build logs I found that v7 gets the following outputs:
| Version Name | ‘1.0.0’
| Version Code | 1
And v8
| Version Name | ‘1.0.0’
| Version Code | 2
Output for v8 seems a bit odd to me, since they are from the same build (and all variations of build configurations).
I’d love to know how I can fix this issue and publish my app without any license warning.
Thanks in advance,
Sylvia