eas build -p android --profile preview
xxxxxxxxxx
eas build -p android --profile preview
xxxxxxxxxx
// 1- go to yourProject/app.json file
// 2- edit the app.json file by change :
// -- name key value !? if you want
// -- version key value !? if you want
// -- android key value add :
// -- -- package key with value com.[your expo username].yourAppName
// -- -- versionCode key with value 1
// know type this code in the terminal //
eas build -p android --profile preview
// attention: you should have install eas-cli and expo user account before
// following this steps
// done
xxxxxxxxxx
› npm install -g eas-cli
› eas build -p android https://docs.expo.dev/build/setup/
expo build:android has been discontinued (January 4, 2023).
xxxxxxxxxx
Just change the eas.json with this:
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"production": {}
}
}