Runtime Error when get VersionCode and VersionName while using companion.
and App crash after build Apk. can anyone facing same issue? let me know any solution.
Thanks
Use Package Utlits Component For That
Anke
July 11, 2022, 5:10pm
3
techVsurya:
VersionName
Try to change it e.g. to → 1.01
Did you try to get this data outside the screen initialization block?
Anke
July 12, 2022, 12:06am
6
If you open a new project, you see this:
Without changing anything in the Settings, you get this from the blocks:
So you must change it in the Settings first or better set in the Blocks (VersionCode and VersionName).
Anke
July 12, 2022, 7:52am
8
Btw, this issue should be fixed. @Souvik
(VersionName returns “nothing”)