expo: [Expo Go] [Android Only] React native build error: Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper()

💡 Note from Expo team:

A fix has been rolled out, and will soon be available in the Play store. For now, you could use this method to install Expo Go 2.24.3 with the fix, or download the APK directly!


Please refer to https://github.com/expo/expo/issues/17372#issuecomment-1119866941 for a workaround (this explains how to install an older version of Expo Go if you are still using SDK 44). Another option is to upgrade to SDK 45. We are working towards a resolution for the latest version.


Summary

I just updated Expo Go to the last version (getting ready for SDK 45). iOS working well, but in Android I have exactly this issue: https://stackoverflow.com/questions/67683149/react-native-build-error-attempt-to-invoke-virtual-methodboolean-com-facebook

I don’t have any error log in the console to share here. Just same screenshot as that SO question. It happens right exactly when the app finish loading.

I can see in the logs that it says something about “emoji”. The only thing I can say is that my app DOES HAVE emojis.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

SDK44

Environment

expo-env-info 1.0.3 environment info: System: OS: macOS 11.6.1 Shell: 5.8 - /bin/zsh Binaries: Node: 14.18.2 - ~/.nvm/versions/node/v14.18.2/bin/node Yarn: 1.22.18 - ~/.yarn/bin/yarn npm: 8.3.2 - ~/.nvm/versions/node/v14.18.2/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 Android SDK: API Levels: 27, 31 Build Tools: 23.0.1, 23.0.3, 25.0.3, 26.0.1, 27.0.3, 28.0.3, 29.0.2 System Images: android-31 | Google Play Intel x86 Atom_64 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8309675 Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild npmPackages: expo: ^44.0.0 => 44.0.6 react: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 npmGlobalPackages: eas-cli: 0.52.0 expo-cli: 5.4.3 Expo Workflow: managed

Reproducible demo

1:50AM here. Kind of hard to get a reproducible demo now.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 16
  • Comments: 42 (8 by maintainers)

Most upvoted comments

Edit: A fix has been rolled out, and will soon be available in the Play store. For now, you could use the method below to install Expo Go 2.24.3 with the fix!


While we investigate this issue, I want to mention an easy way to get back to the previous Expo Go version, without having to download it from 3rd party websites. The Expo CLI has a command to install any specific version of Expo Go on your local device or simulator.

  • $ expo client:install:android --device
  • $ expo client:install:ios

If you run this inside a project, it will list the available Expo Go versions for that project. If you run this outside your project, you can pick any Expo Go version you want.

image

If your environment is limiting you in any way to use that command, here are the direct links to the APK and simulator builds:

Sorry for the inconvenience!

Hi guys, thanks for reporting this issue! 🙏 We’re investigating the problem and will let you know about any updates.

@byCedric thank you for the temporary solution. Guys use this solution until the fix is released

I can confirm that this solution by @byCedric is working: solution

I use Expo 44 and downgraded to v2.32.2 of Expo Go and all is good again.

I just reinstalled the old version 2.23.2, and everything went ok.

To anyone running into this issue, can someone provide a repro example? It looks like this might be coming from one or more 3rd party modules. According to this comment, it’s likely caused by an issue in React Native 0.68.x and androidx.appcompat:appcompat:1.4.0+.

In our modules, we only use 1.2.0, 1.1.0, or 1.0.2.

This seems like a TextInput issue for me on Android, that is imported from ‘react-native’. App works if I comment the TextInput out, on any screen.

To anyone running into this issue, can someone provide a repro example? It looks like this might be coming from one or more 3rd party modules. According to this comment, it’s likely caused by an issue in React Native 0.68.x and androidx.appcompat:appcompat:1.4.0+.

In our modules, we only use 1.2.0, 1.1.0, or 1.0.2.

Same issue here. For Android I just downloaded the previous version of apk (2.23.2) from apkpure. I have this error only with the latest version 2.24.1.

Having the exact same issue.

This is a screenshot of the error I get when trying to launch my app on Expo Go.

Screenshot_20220506-181739_Expo Go

Probably duplicated from https://github.com/expo/expo/issues/17335 and https://github.com/facebook/react-native/issues/31572#issuecomment-912017067

The weird thing is that this issue was not present there in the previous version of Expo Go.