expo-splash-screen preventing Android build

Hey there! I am having another issue simply building the app for Android with the bare workflow.

The build fails on task: :app:compileDebugJavaWithJavac with this error inside our MainActivity.java file:

error: no suitable method found for show(MainActivity,SplashScreenImageResizeMode,Class<ReactRootView>)
    SplashScreen.show(this, SplashScreenImageResizeMode.CONTAIN, ReactRootView.class);

However, dipping into the expo.modules.splashscreen.SplashScreen module that is also imported in this file, it looks like there is a show() method but it’s not getting referenced somehow for the SplashScreen.show(this, SplashScreenImageResizeMode.CONTAIN, ReactRootView.class); line.

Removing this line completely in MainActivity.java allows for a successful build. How can I get this working without removing that line completely as we need a SplashScreen for our app?

Any help would be greatly appreciated, thank you kindly.

Expo CLI 3.21.5 environment info:
System:
OS: macOS 10.15.6
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.9.0 - ~/.nvm/versions/node/v13.9.0/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.13.7 - ~/.nvm/versions/node/v13.9.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6858069
Xcode: 12.0.1/12A7300 - /usr/bin/xcodebuild
npmPackages:
expo: ^39.0.0 => 39.0.3
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: ~0.63.3 => 0.63.3
react-native-web: ~0.13.7 => 0.13.13
react-navigation: ^3.12.0 => 3.13.0
expo-splash-screen: ^0.2.3
@expo/configure-splash-screen: 0.1.19
npmGlobalPackages:
expo-cli: 3.21.5

Hey @rgordon,

Is this happening with a newly created project as well or is this only occurring in your project?

Cheers,
Adam

@adamjnav thank you for your reply! I did attempt on a blank project and it didn’t have the issue. Turns out upgrading expo-cli as well as expo-splash-screen has fixed the issue in my own project. Thank you!