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

Use Package Utlits Component For That
component_set_get (1)

component_set_get

Try to change it e.g. to → 1.01

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

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

Thankyou @Anke

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