Missing app icon and splash screen after eas build

Hi,

after building my app with “expo build:android” the app had an app icon and a splash screen. After building the same app with “eas build --platform android” the app had no icon nor splash screen.

How can I get app icon and splash screen building with “eas build”?

I’m using eas-cli version 0.53.0, managed workflow.

This is my app.json file with paths to icon and splash screen that works when building with “expo build”:

{
  "expo": {
    "name": "MyApp",
    "slug": "MyApp",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "package": "com.app.myapp",
      "versionCode": 1
    },
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "plugins": [
      [
        "@stripe/stripe-react-native",
        {
          "enableGooglePay": "true"
        }
      ],
      [
        "expo-media-library",
        {
          "isAccessMediaLocationEnabled": "true"
        }
      ]
    ]
  }
}

Hi @gnikiv

I suspect you ran expo run:android or expo run:ios at some point.

See the following message for more info on this and what you can do about it:

Hi @wodin

You’re right, I ran “expo run:android” earlier, so that may have turned the app into a bare workflow app or modified some files.

After putting the android/ folder in .gitignore, the app was built with app icon and splash screen (“eas build”)

Thanks

1 Like