[Expo Go] [Android Only] React native build error: Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper()
See original GitHub issue💡 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.
Issue Analytics
- State:
- Created a year ago
- Reactions:16
- Comments:42 (8 by maintainers)
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.
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.