As it was in my case, sometimes, adding the version numbers in the **app.json** codes doesnt seem to work. To solve the issue, I let Expo handle that automatically for me. To do that, simply add:
"autoIncrement": true
to the build section inside the **eas.json** file. For instance, in my own case, that part of the file looked like this:
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal",
"android":{
"buildType": "app-bundle"
},
"autoIncrement": true
},
"production": {
"autoIncrement": true
}
The one under `production` is automatically added. I added the one under `preview` to solve the issue. Hope this helps someone.
Most times, adding the version numbers in the **app.json** codes doesnt seem to work, as in my case. To solve the issue, I let Expo to handle that automatically for me. To do that, simply add:
"autoIncrement": true
to the build section inside the **eas.json** file. For instance, in my own case, that part of the file looked like this:
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal",
"android":{
"buildType": "app-bundle"
},
"autoIncrement": true
},
"production": {
"autoIncrement": true
}
The one under `production` is automatically added. I added the one under `preview` to solve the issue.
Hope this helps someone.