Fatal Exception: java.lang.NoSuchMethodError: no non-static method "Lcom/facebook/react/turbomodule/core/CallInvokerHolderImpl
See original GitHub issueDescription
App works fine in development, but crashes in Android (production), see below for crashlytics stacktrace:
React Native version:
System:
OS: macOS 11.2.3
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 400.78 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.11.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.6.0 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.10.1 - /Users/anand/.gem/ruby/2.6.0/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 29, 30
Build Tools: 29.0.2, 30.0.3
System Images: android-30 | Google APIs Intel x86 Atom
Android NDK: 23.0.7196353-beta2
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 11.0.10 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- Build app for production
- Release in Google play store
- Open the app after installing from play store
Expected Results
App should work without crashing
Snack, code example, screenshot, or link to a repository:
Fatal Exception: java.lang.NoSuchMethodError: no non-static method "Lcom/facebook/react/turbomodule/core/CallInvokerHolderImpl;.<init>(Lcom/facebook/jni/HybridData;)V"
at com.facebook.react.bridge.CatalystInstanceImpl.getJSCallInvokerHolder(CatalystInstanceImpl.java)
at com.facebook.react.bridge.CatalystInstanceImpl.getJSCallInvokerHolder(CatalystInstanceImpl.java)
at com.swmansion.reanimated.NativeProxy.<init>(NativeProxy.java:7)
at com.swmansion.reanimated.NodesManager.initWithContext(NodesManager.java:2)
at com.swmansion.reanimated.ReanimatedJSIModulePackage.getJSIModules(ReanimatedJSIModulePackage.java:12)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:104)
at com.facebook.react.ReactInstanceManager.access$1100(ReactInstanceManager.java)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:68)
at java.lang.Thread.run(Thread.java:923)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
java.lang.NoSuchMethodError: No static method 'myMethod'
The app installs without any errors; but when the method is invoked at runtime it gives me the following error: java.lang.NoSuchMethodError: No ......
Read more >no non-static method with name='getStatusCode' signature='()I'
Hi, I faced with problem Error Unity AndroidJavaException: java.lang.NoSuchMethodError: no non-static method with name='getStatusCode'...
Read more >java.lang.NoSuchMethodError: No static method - androidx ...
Not appearing in development builds. What exactly changes needs to be done to avoid this crash. Error Log - Fatal Exception: java.lang.
Read more >java.lang.NoSuchMethodError: no non-static method with ...
How to resolve this issue? AndroidJavaException: java.lang.NoSuchMethodError: no non-static method with name='showCollectUI'.
Read more >no non-static method with name='loadAd' - Google Help
java.lang.NoSuchMethodError: no non-static method with name='loadAd'. I use : Unity 2021.3.9f1 GoogleMobileAds-v7.2.0
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Turned out it was problem with proguard. Noted here
proguard rule
-keep class com.facebook.react.turbomodule.** { *; }
Thanks @PrimulaX, I did turn off my proguard in
android/app/build.gradle
and it workedReact native v0.66