expo: SDK 45 Android App Crashing on Bundle Load
Summary
I am upgrading my project to Expo SDK 45 beta v9 and have gotten things working on iOS. However, for Android, my app is able to build but when the bundle loads in the installed development client the app crashes. When attaching to the Android Studio debugger, nothing seems to be caught or captured. In Flipper, there are a bunch of mysterious errors and logs (see here https://cdn.discordapp.com/attachments/695411232856997971/971463342390648912/unknown.png)
The project is bare, but ios and android directories are generated via Expo w/ one minor config plugin.
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
bare
What platform(s) does this occur on?
Android
SDK Version (managed workflow only)
45
Environment
expo-env-info 1.0.3 environment info: System: OS: macOS 12.1 Shell: 5.8 - /bin/zsh Binaries: Node: 16.4.2 - ~/Library/Caches/fnm_multishells/72659_1651686938759/bin/node Yarn: 3.0.1 - /opt/homebrew/bin/yarn npm: 7.18.1 - ~/Library/Caches/fnm_multishells/72659_1651686938759/bin/npm Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 28, 30, 31 Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0 System Images: android-31 | Google APIs ARM 64 v8a IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7935034 Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild npmGlobalPackages: eas-cli: 0.52.0 expo-cli: 5.4.3 Expo Workflow: bare
Reproducible demo
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 25 (15 by maintainers)
@ajsmth I’ve installed those updates and the issue seems resolved! Thanks 😃
Solved? So you may need to update https://blog.expo.dev/expo-sdk-45-f4e332954a68 (
Known regressions
title)Yep, I am. You should (hopefully) be able to reproduce the issue in the reproducible repo.
facing same errors in expo go on android after upgrading to SDK 45
following up on this - I think this was an unintentional side effect of some workarounds we had to use to get Hermes debugging to function properly with
expo-dev-menu
- we’ll be reverting this change and publishing a new package to npm soon (I will follow up with that here when it is published)I just upgraded and tried it out, the issue is still present.
Could be related - I am seeing:
Hey @byCedric, thanks for the response. I’ll be sure to implement those additional monorepo steps - in my main project we have a lot more going on, but I simplified it here.
I can reproduce this crash consistently every time in the linked repo. Can you recommend any steps I can do to trouble shoot what is going wrong? https://user-images.githubusercontent.com/5165963/166935526-77d54d3e-adb5-4e0c-bdbe-e6f069468cf6.mp4
I am unable to get anything attaching with the Android Studio debugger, but can get some messages from flipper:
Click to expand