apk generated with `eas:build` gets stuck at splashscreen

I configured my eas.json by following the docs to generate a debug apk for android. The build was successful without any alarming errors, but when I install the apk on my device, the app does not go beyond splash screen, it stays there forever. I am on bare workflow which is ejected from expo long ago and apk generated with react-native works fine. Here’s my eas.json file. I wonder the js bundle is not loading at all and that’s the reason the app is stuck at splash screen.
Expo SDK: 40

  "builds": {
    "android": {
      "release": {
        "workflow": "generic",
        "withoutCredentials": true,
        "gradleCommand": ":app:assembleDebug",
        "artifactPath": "android/app/build/outputs/apk/debug/app-debug.apk",
        "distribution": "internal"

You should look through the device logs (adb logcat) for more information.

In your build.gradle, do you have bundleInDebug: true?

Found the problem. I had an assets folder in android/app/src/main which i am using it for index.android and index.android.bundle while generating debug apk using react native with command
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

Deleting that folder solved the issue


This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.