New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK 45 Android App Crashing on Bundle Load #17339
Comments
Hi @Braden1996! The repo you provided seems to work on my Android phone, so I'm not sure what's going on. I did spot some issues for monorepos in the metro.config.js, namely this part. Other than that I can't repro any issues here. Can you provide another repo where this issue might occur? |
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? I am unable to get anything attaching with the Android Studio debugger, but can get some messages from flipper: Click to expand
|
This might be related to an extent: #17355 |
|
@Braden1996 can you try out |
I just upgraded and tried it out, the issue is still present. |
Okay thanks for trying - are you using Hermes? |
Yep, I am. You should (hopefully) be able to reproduce the issue in the reproducible repo. |
Same issue but only if I run |
having the same issue ( android ) with/without hermes.
|
I too am facing the same issue on both Android and IOS devices |
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 |
Also, please try the newest version - 0.9.5. It may contain a fix. |
@ajsmth I've attached below the screenshots of the errors shown for both Android, IOS, and Terminal Android - see Screenshot_Android_Expo Go IOS - see File_000 (63) and File_000 (64) Terminal - see image Step-wise, all I did was follow the instructions on Expo to upgrade from SDK44 to SDK 45 (i.e. update to latest Expo CLI, EAS CLI, and expo upgrade), then tried to launch my project. This is all the info I have at the moment. Hope it helps! |
unfortunately that's not enough to go off of - if you are able to reproduce something that you think is a bug consistently, I would say create a new issue and provide a minimum reproducible example that we can take a look at - this link might help: https://stackoverflow.com/help/minimal-reproducible-example having a quick glance it seems that all the screenshots are related to your local network settings - perhaps it has something to do with that - you could also try checking out our Discord: https://discord.gg/Uhsun75V sometimes folks have similar issues there! |
We had |
0.9.5 with 45.0.1 fixed all android bundle load crashes for me! |
@hirbod With hermes ? |
Yes |
@Braden1996 are you able to confirm that your issue is solved via |
@ajsmth I've installed those updates and the issue seems resolved! Thanks :) |
facing same errors in expo go on android after upgrading to SDK 45 |
Solved? So you may need to update https://blog.expo.dev/expo-sdk-45-f4e332954a68 ( |
mine kept crashing because the file size of my splash image was up to 300kb. Exported a smaller version (40kb) and it was able to build. Although, for iOS both sizes work. |
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/
orandroid/
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
https://github.com/Braden1996/expo-45-issue
The text was updated successfully, but these errors were encountered: