Version Code and Version Name error

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


Screenshot 2022-07-11 at 20-53-51 Niotron
Screenshot 2022-07-11 at 20-53-35 Niotron

3 Likes

Use Package Utlits Component For That
component_set_get (1)

component_set_get

1 Like

Try to change it e.g. to → 1.01

Did you try to get this data outside the screen initialization block?

2 Likes

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).

3 Likes

Thankyou @Anke

1 Like

Btw, this issue should be fixed. @Souvik
(VersionName returns “nothing”)

5 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.