Closed Logan-Lim closed 3 years ago
I also am experiencing the same issue on Android device.
Environments
hi, we'll look into this
Same here!
@Szymon20000 any ideas on this one?
I'm actually able to reproduce this while running locally if I enable production mode.
Expo logs the following error in console (same as reported before):
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' could not be found. Verify that a module by this name is registered in the native binary.
Hey! I noticed that for local development clearing cache with expo start -c
flag is enough to get rid of this bug.
The problem still exists for me if I want to publish on the release-channel.
Already tried:
rm -rf $TMPDIR/metro* && expo publish --clear --release-channel my-channel
but results are the same as above.
same here, it works well while using expo start
and opening android emulator.
however in case of running it using expo publish
or expo build:android
it is failing, Logcat:
NativeReanimated' could not be found. Verify that a module by this name is registered in the native binary
Please note that installing and running the apk (generated via expo build:android
) produce the same error for both physical device or emulator (in compare to expo start
+ a that is working fine)
we'll hopefully have an answer for next week, thanks for the info.
@brentvatne any updates on this one? I really like Reanimated v2 so far, but depending on timeline might have to revert.
@Logan-Lim - no update at the moment, sorry for the delays. i'll try to find someone to investigate this next week.
@brentvatne any updates on this one? I really like Reanimated v2 so far, but depending on the timeline might have to revert.
Me too I am waiting for the solution to this to publish my app
Bug found and fixed. 🕵️ The change is being applied to SDK39 Android workers, you may expect it to land in the next 12 hours. 🔜
Bugfix pushed to builders! All builds triggered after Monday, October 26 2020, 18:17 2020 UTC should get the new native backing code allowing you to use Reanimated v2 in standalone apps.
Fix has not been published in a new release of Expo client, so running apps in production mode there will still give you an error.
I am experiencing the exact same error when making an apk using managed workflow SDK 40. Works fine in development using expo client. @sjchmiela
like here I am still experiencing random problems in some android devices using managed workflow with the SDK40 (removing the experimental flag of turbomodules
improved stability) but my users are experiencing unexpected closings, I leave a screenshot.
I am trying to identify the case but locally and with my android devices I have not been able to reproduce it, the following error is the one that generates all the errors:
<un:
at host.exp.exponent.experience.BaseExperienceActivity.lambda$consumeErrorQueue$0 (BaseExperienceActivity.java:210)
at host.exp.exponent.experience.-$$Lambda$BaseExperienceActivity$zZZNiLUhJmY4AlwF2loJATXcbqc.run (-.java:2)
at android.os.Handler.handleCallback (Handler.java:873)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:193)
at android.app.ActivityThread.main (ActivityThread.java:6863)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
An here more details about the devices:
I forgot, as the expo sdk40 reanimated paper says I'm using react-native-reanimated@2.0.0-rc.0
.
@outaTiME @Tiltorito I am getting the same as you guys with Expo SDK v40 and native-reanimated rc0. On my android phone it's clearly reproducible in Alpha testing, but not on the Expo client (even in the production mode). Can somebody create a new ticket that will reference this new issue in the latest SDK?
Here'sthe stacktrace from the app crash preview.
@sjchmiela Can you have a look on the latest comments regarding this issue reoccurring in the SDK v40? Thanks...
@ivansenic @outaTiME I created a new issue: #11529 - It would be nice if you could upload your crash reports in the new issue so its easier to track
🐛 Bug Report
Summary of Issue
When building an apk using Expo SDK 39 with the reanimated V2 Configuration, the standalone app will not open and crashes.
Edit(2020-10-08): This seems to be not specific to building the apk. But simply running the app in production mode (i.e. expo start --no-dev) should crash on load.
Environment - output of
expo diagnostics
& the platform(s) you're targetingOS: Windows
Expo CLI 3.27.13 environment info: System: Binaries: Node: 12.14.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 4.0.0.0 AI-193.6911.18.40.6626763 npmPackages: expo: ~39.0.0 => 39.0.3 react: ~16.13.0 => 16.13.1 react-dom: ~16.13.0 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-39.0.2.tar.gz => 0.63.2 react-native-web: 0.13.13 => 0.13.13 Expo Workflow: managed
Reproducible Demo
I initially found this when trying to migrate my own project, but the same issue is reproduceable in the 'with-reanimated2' create react native app template. Note this works fine running locally off an expo start.
Note: I am not able to test if this works on iOS.
Steps to Reproduce
1) run npx create-react-native-app --template with-reanimated2 2) expo build:android 3) install .apk on emulator/phone 4) open app
Expected Behavior vs Actual Behavior
The app crashes while opening. And I got the following from an 'adb logcat *:E' on my emulator.