build android app failed on expo-splash-screen

when i build the projeect, i get an error message :

" [stderr] Execution failed for task ‘:expo-splash-screen:compileReleaseKotlin’.".

it seems to be solved on this topic:

fyi/ at main · expo/fyi · GitHub

but i still get the error on this build.
i had try to uninstall expo-splash-screen, and it works, but i’m still wondering why i get this error.

eas-cli version: .3.17.1
“dependencies”: {
“expo”: “^49.0.5”,
“react-native”: “0.72.3”,
“expo-splash-screen”: “‘0.20.5’”

I have the same issues doing a eas build --profile development --platform android
as well as in EAS cloud or local I get a problem with android build at expo-splash-screen.
I can’t find any useful in de logs…what is wrong?

EAS CLI 3.18.3 environment info:
OS: macOS 13.5
Shell: 5.9 - /opt/homebrew/bin/zsh
Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.0/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm
Git: 2.39.2 - /usr/bin/git
expo: ~49.0.3 => 49.0.3
expo-dev-client: ~2.4.6 => 2.4.6
react: 18.2.0 => 18.2.0
react-native: 0.72.3 => 0.72.3
eas-cli: 3.18.3
expo-cli: 6.3.10
Project workflow: managed

“dependencies”: {
“expo”: “~49.0.3”,
“expo-av”: “~13.4.1”,
“expo-dev-client”: “~2.4.6”,
“expo-font”: “~11.4.0”,
“expo-localization”: “~14.3.0”,
“expo-splash-screen”: “~0.20.5”,
“expo-status-bar”: “~1.6.0”,
“i18n-js”: “3.9.2”,
“react”: “18.2.0”,
“react-native”: “0.72.3”,
“react-native-paper”: “^5.9.1”,
“react-native-purchases”: “^6.3.0”,
“react-native-safe-area-context”: “4.6.3”,
“react-native-screens”: “~3.22.0”,
“react-native-svg”: “13.9.0”,
“react-query”: “~3.39.3”,
“react-redux”: “^8.1.1”

Some how something has changed between expo sdk 49 first release when I had to use @latest with create-expo-app because I just did it again with npx create-expo-app --templated, used typescript and made a vanilla project with sdk 49.0.5 and added al my dependencies, and placed al the sources.
Now I works fine!

For me, the build failed while building expo-splash-screen. There’s no hard dependency for me in my project for this library, so I removed it for now. Post removing, the build succeeded.

For anyone this is still affecting, Expo version 49.0.6 solves this


Thank you, it work for me :facepunch: :cowboy_hat_face:

Hello! How do I upgrade to 49.0.6? I run expo-cli upgrade 49 and it installs 49.0.0
Thank you

Don’t use expo-cli upgrade anymore

But if you do that it will probably install the latest available version of expo 49.0.x anyway.

If it adds "expo": "^49.0.0" or "expo": "~49.0.0" to your package.json, it will not install exactly version 49.0.0, but rather the latest 49.0.x version available at that time.

If you run npm why expo it should tell you what version is actually installed.

These days you should upgrade as per the instructions in the Expo SDK 49 release blog post:

:arrow_right: Upgrading your app

Here’s how to upgrade your app to Expo SDK 49 from 48:

  • […]
  • Install the new version of the Expo package:
    npm install expo@^49.0.0 or yarn add expo@^49.0.0
  • Upgrade all dependencies to match SDK 49:
    npx expo install --fix

@keith-kurak is working on making npx expo install --fix update the expo package version too :slight_smile: coming soonish

1 Like