question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created a year ago
  • Reactions:16
  • Comments:42 (8 by maintainers)

github_iconTop GitHub Comments

29reactions
byCedriccommented, May 8, 2022

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!

13reactions
tsapetacommented, May 6, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

React native build error: Attempt to invoke virtual method ...
I was able to narrow down what was causing the error for me by using adb logcat and tracing the app. The issue...
Read more >
attempt to invoke virtual method boolean com.facebook.react ...
React native build error : Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper().
Read more >
Attempt to invoke virtual method 'boolean abi44_0_0 ... - Reddit
Hi friends ! I finaly succeed to create a user with firebase and react-native. However, next morning, this error showed up on screen....
Read more >
React Native Build Error: Attempt To Invoke Virtual ... - ADocLib
0 the following error is reported for some users. Attempt to invoke virtual method 'boolean com.bugsnag.android. yarn install and reactnative runios / ...
Read more >
React Native Community | anybody know this error - Facebook
i've got this error on android. java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.react.uimanager.ReactShadowNode.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found