make sure in app.json

{
  "expo": {
    "name": "your app name",
    "description": "your app desc",
    ....,
    "ios": {
      "supportsTablet": true
    },
    
    "android": {
      "package": "com.yourcompany.yourappname"
    }
  }
}

then run expo build:android or expo ba

after that

run expo build:status you'll find, something like this, the Apk's is hosted on amazon aws

[exp] Android:
[exp] APK: https://HOST/yourapp.apk
Answer from Ansyori on Stack Overflow
🌐
Expo Documentation
docs.expo.dev › build-reference › apk
Build APKs for Android Emulators and devices - Expo Documentation
Pass the --latest flag to the eas build:run command to download and install the latest build on the Android Emulator: ... Once your build is completed, copy the URL to the APK from the build details page or the link provided when eas build is done.
🌐
QED42
qed42.com › insights › building-apks-locally-with-expo-a-step-by-step-guide
Building APKs locally with expo: a step-by-step guide
Expo also provides EAS Build (Expo Application Services), which allows you to build APKs locally without manually handling Gradle commands. Here’s how: 1. Install EAS CLI (if not installed already): ‍
🌐
Stackademic
blog.stackademic.com › how-to-generate-an-apk-using-react-native-expo-cli-with-eas-build-33c89f2755ab
How to Generate an APK Using React Native Expo CLI with EAS Build | by Abhishek kumaar | Stackademic
June 12, 2024 - Expo CLI: Install Expo CLI globally using npm or yarn: ... Choose a template that fits your needs, and navigate to your project directory. Expo uses the app.json configuration file to manage various settings for your app.
🌐
Expo Documentation
docs.expo.dev › more › expo-cli
Expo CLI - Expo Documentation
Build and run the native apps locally: npx expo run:ios and npx expo run:android. Install and update packages that work with the version of react-native in your project: npx expo install package-name.
🌐
Medium
medium.com › @hrusikesh251.nalanda › how-to-generate-apk-using-react-native-expo-cli-43c4c2085636
How To Generate apk Using React Native Expo CLI | by Hrusikesh Swain | Medium
November 14, 2023 - In this step create an expo account from here https://expo.dev/signup and log in using your email and password. Step 4: Log in to cmd using expo credentials Open cmd and run the below command ...
🌐
GitHub
github.com › RobinCsl › build-standalone-expo-app
GitHub - RobinCsl/build-standalone-expo-app: Accompanying repo for my article "Build Standalone Expo .apk and .ipa with Turtle CLI"
EXPO_ANDROID_KEYSTORE_PASSWORD=<KEYSTORE_PASSWORD> \ EXPO_ANDROID_KEY_PASSWORD=<KEY_PASSWORD> \ turtle build:android \ --type apk \ --keystore-path <KEYSTORE_PATH> \ --keystore-alias <KEYSTORE_ALIAS> \ --allow-non-https-public-url \ --public-url http://127.0.0.1:8000/android-index.json
Starred by 11 users
Forked by 4 users
Languages   JavaScript
Find elsewhere
🌐
Fig
fig.io › manual › expo-cli › client:install:android
expo-cli client:install:android | Fig
expo-cli install · expo-cli publish · expo-cli publish:set · expo-cli publish:rollback · expo-cli publish:history · expo-cli publish:details · expo-cli push:android:upload · expo-cli push:android:show · expo-cli push:android:clear · expo-cli run:android · expo-cli run:ios · expo-cli send · expo-cli start · expo-cli start:web · expo-cli upload:android · expo-cli upload:ios · expo-cli url · expo-cli url:ipa · expo-cli url:apk ·
🌐
Robin Cussol
robincussol.com › build-standalone-expo-apk-ipa-with-turtle-cli
Build Standalone Expo .apk and .ipa with Turtle CLI [deprecated] - Robin Cussol
Guide to building standalone APK and IPA files for Expo apps using Turtle CLI, with notes on current deprecation and alternatives.
🌐
Expo Documentation
docs.expo.dev › develop › tools
Tools for development - Expo Documentation
Use local files to install and launch apps. Orbit supports any Android .apk, iOS Simulator compatible .app, or ad hoc signed apps. See a list of pinned projects from your EAS dashboard. ... You can download Orbit with Homebrew for macOS, or directly from the GitHub releases. ... If you want Orbit to start when you log in automatically, click ...
🌐
Expo Documentation
docs.expo.dev › build › setup
Create your first build - Expo Documentation
If you'd like to try this, read about creating an installable APK for Android and creating a simulator build for iOS. Before the build process can start for app stores, you will need to have a store developer account and generate or provide app signing credentials. Whether you have experience with generating app signing credentials or not, EAS CLI does the heavy lifting.
🌐
Fig
fig.io › manual › expo-cli
expo-cli | Fig
expo-cli install · expo-cli publish · expo-cli publish:set · expo-cli publish:rollback · expo-cli publish:history · expo-cli publish:details · expo-cli push:android:upload · expo-cli push:android:show · expo-cli push:android:clear · expo-cli run:android · expo-cli run:ios · expo-cli send · expo-cli start · expo-cli start:web · expo-cli upload:android · expo-cli upload:ios · expo-cli url · expo-cli url:ipa · expo-cli url:apk ·
🌐
Medium
medium.com › @anjanadhakal09 › install-expo-and-generate-installable-apk-android-for-testing-592cbcb0f4ad
Install Expo and generate Installable apk(Android) for testing | by Anjana Dhakal | Medium
December 25, 2023 - Go to the official docummentation of eas build(we are using eas for apk build) i.e https://docs.expo.dev/build/introduction · Run the command: npm install -g eas-cli · To build in eas you should have expo account.
🌐
Reddit
reddit.com › r/expo › how to build apk from expo react native app in latest version?
r/expo on Reddit: How to build apk from expo react native app in latest version?
January 8, 2023 -

I want to build apk of my expo react native app but without using expo.dev Since they have a limit of 30 builds, and its very slow as well. Is there any way to build the apk locally? I ran the expo run:android command, it generated android folder, I tried to use android studio to build apk, but I got the development build instead.

I also tried editing eas.json, it gives the apk on their website itself, but is there any way to generate apk locally? Also it works in my one project, but in another project of mine, it doesn't work, I still get playstore build only.

Or how to effectively use the update command instead of making new apk everytime, because free account gets 10000 updates in a month, so that is suffice for me. But not able to figure out the update part.

🌐
Expo Documentation
docs.expo.dev › guides › local-app-development
Local app development - Expo Documentation
You need to install and set up Android Studio and Xcode to compile and run Android and iOS projects on your local machine. See the following on how to set up these tools: ... To build your project locally you can use compile commands from Expo CLI which generates the android and ios directories:
Top answer
1 of 2
7

I use EAS as well and i find it quite handy. Let me explain the profiles quickly.

All profiles can be found in eas.json

Development

This type is for developing, it makes it possible to see live reloads, live changes in the application when you change it. You can even pass env. variables if needed.

eas build --profile development --platform android

OR

To make a local build so the Expo Application Service is skipped

npx expo run:android

    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "env": {
        "API_URL": "X",
      }

Preview

This creates a .apk file that you can install on your device or emulator. Note the the env. variable does not need to be the same as development

eas build --profile preview --platform android

    "preview": {
      "distribution": "internal",
      "env": {
        "API_URL": "Y",
      }
    },

Production

This creates a .aab file which you can upload on to Google Developer Console, if you want to set your app on the app store.

eas build --profile production --platform android

    "production": {
      "env": {
        "API_URL": "X",
      }
    },

If you do not need the env values, you can safely delete them.

After executing on of the commands in your terminal, a link should appear to expo.dev where you can download and install your development or preview .apk file

2 of 2
0

I use the EAS to create development builds and generate apk file. Reference my eas configuration to see the different profiles setup. At minimal, I have development, development-simulator and production build profiles defined.

{
  "cli": {
    "appVersionSource": "local"
  },
  "build": {
    "development": {
      "distribution": "internal",
      "channel": "uat",
      "developmentClient": true,
      "env": {
        "bundleIdentifier": "",
        "name": "",
        "APP_VARIANT": "development"
      },
      "autoIncrement": false,
      "android": {
        "buildType": "apk",
        "gradleCommand": ":app:assembleDebug"
      }
    },
    "development-simulator": {
      "extends": "development",
      "ios": {
        "simulator": true
      }
    },
    "production": {
      "channel": "production",
      "distribution": "store",
      "developmentClient": false,
      "autoIncrement": false,
      "env": {
        "bundleIdentifier": "",
        "name": ""
      },
      "ios": {
        "resourceClass": "m1-medium"
      }
    },
    "internal": {
      "extends": "production",
      "channel": "production",
      "distribution": "internal",
      "developmentClient": false,
      "autoIncrement": false,
      "env": {
        "bundleIdentifier": "",
        "name": ""
      }
    },
    "uat": {
      "extends": "production",
      "channel": "uat",
      "distribution": "internal",
      "developmentClient": false,
      "autoIncrement": false,
      "env": {
        "bundleIdentifier": "",
        "name": ""
      }
    }
  }
}

For example, to create a build for Android simulator, run

npm run build:android:dev

The build may take up to a few minutes to complete depending on the queue.

After the build is complete, you can download it on your iOS device by scanning the QR code from the device's camera from the Expo CLI. You can also find this QR code on the build page in the expo dashboard.

With the development build installed on your device or emulator/simulator, start the development server with npm run start. The app will run on your device and you can make changes in javascript and see the changes immediately.

A rebuild of the development client is only necessary if you add a library to your project that contains native code APIs, for example, expo-secure-store.