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
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
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
andVersionName
).
Thankyou @Anke
Btw, this issue should be fixed. @Souvik
(VersionName returns “nothing”)
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.