Some Guy
Some Guy

Reputation: 13578

Should I manage app versioning from build.gradle or AndroidManifest.xml?

I have a React Native app. It appears the version number can be defined in both build.gradle and AndroidManifest.xml.

Should I manage app versioning from build.gradle or AndroidManifest.xml and why?

Upvotes: 2

Views: 117

Answers (2)

Haniyeh Khaksar
Haniyeh Khaksar

Reputation: 804

it is correct that you define it in build.gradle, but if you want to define it in manifest.xml, you can do it, but you must remove app version from build.gradle. I suggest you use build.gradle.

Upvotes: 0

BlueSlimShady
BlueSlimShady

Reputation: 137

you should manage the app version from the build gradle as it overrides whatever is written in the manifest.

Upvotes: 3

Related Questions