xxxxxxxxxx
expo build:android // for building android react native apk with expo
xxxxxxxxxx
Open cmd
Login to expo account using the command :
expo login
expo build:android
Select apk
Select generate keystore
//eas.json file
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"production": {}
}
}
//comand
xxxxxxxxxx
npx eas build -p android --profile preview
xxxxxxxxxx
Just change the eas.json with this:
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"production": {}
}
}